...

Source file src/edge-infra.dev/pkg/edge/apis/gkecluster/v1alpha1/groupversion_info.go

Documentation: edge-infra.dev/pkg/edge/apis/gkecluster/v1alpha1

     1  // Package v1alpha1 contains API Schema definitions for the edge.ncr.com v1alpha1 API group
     2  // +kubebuilder:object:generate=true
     3  // +groupName=edge.ncr.com
     4  package v1alpha1
     5  
     6  import (
     7  	"reflect"
     8  
     9  	"k8s.io/apimachinery/pkg/runtime/schema"
    10  
    11  	"sigs.k8s.io/controller-runtime/pkg/scheme"
    12  )
    13  
    14  const (
    15  	Name = "gkeclusters"
    16  	Kind = "GKECluster"
    17  )
    18  
    19  var (
    20  	// GroupVersion is group version used to register these objects
    21  	GroupVersion = schema.GroupVersion{Group: "edge.ncr.com", Version: "v1alpha1"}
    22  
    23  	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
    24  	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
    25  
    26  	// AddToScheme adds the types in this group-version to the given scheme.
    27  	AddToScheme = SchemeBuilder.AddToScheme
    28  
    29  	GKEClusterGVK = schema.GroupVersionKind{
    30  		Group:   GroupVersion.Group,
    31  		Version: GroupVersion.Version,
    32  		Kind:    reflect.TypeOf(GKECluster{}).Name(),
    33  	}
    34  
    35  	GKEClusterAPIVersion = GroupVersion.String()
    36  )
    37  

View as plain text