...

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

Documentation: github.com/openshift/api/imageregistry

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

View as plain text