github.com/oam-dev/cluster-gateway@v1.9.0/e2e/framework/scheme.go (about)

     1  package framework
     2  
     3  import (
     4  	clusterv1alpha1 "github.com/oam-dev/cluster-gateway/pkg/apis/cluster/v1alpha1"
     5  	proxyv1alpha1 "github.com/oam-dev/cluster-gateway/pkg/apis/proxy/v1alpha1"
     6  	"k8s.io/apimachinery/pkg/runtime"
     7  	addonv1alpha1 "open-cluster-management.io/api/addon/v1alpha1"
     8  	clusterv1 "open-cluster-management.io/api/cluster/v1"
     9  )
    10  
    11  var scheme = runtime.NewScheme()
    12  
    13  func init() {
    14  	clusterv1alpha1.AddToScheme(scheme)
    15  	proxyv1alpha1.AddToScheme(scheme)
    16  	clusterv1.AddToScheme(scheme)
    17  	addonv1alpha1.AddToScheme(scheme)
    18  }