...

Source file src/github.com/openshift/api/operator/install.go

Documentation: github.com/openshift/api/operator

     1  package operator
     2  
     3  import (
     4  	"k8s.io/apimachinery/pkg/runtime"
     5  	"k8s.io/apimachinery/pkg/runtime/schema"
     6  
     7  	operatorv1 "github.com/openshift/api/operator/v1"
     8  	operatorv1alpha1 "github.com/openshift/api/operator/v1alpha1"
     9  )
    10  
    11  const (
    12  	GroupName = "operator.openshift.io"
    13  )
    14  
    15  var (
    16  	schemeBuilder = runtime.NewSchemeBuilder(operatorv1alpha1.Install, operatorv1.Install)
    17  	// Install is a function which adds every version of this group to a scheme
    18  	Install = schemeBuilder.AddToScheme
    19  )
    20  
    21  func Resource(resource string) schema.GroupResource {
    22  	return schema.GroupResource{Group: GroupName, Resource: resource}
    23  }
    24  
    25  func Kind(kind string) schema.GroupKind {
    26  	return schema.GroupKind{Group: GroupName, Kind: kind}
    27  }
    28  

View as plain text