mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-06 17:27:08 +00:00
27 lines
651 B
Go
27 lines
651 B
Go
package networkoperator
|
|
|
|
import (
|
|
"k8s.io/apimachinery/pkg/runtime"
|
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
|
|
|
networkoperatorv1 "github.com/openshift/api/networkoperator/v1"
|
|
)
|
|
|
|
const (
|
|
GroupName = "network.operator.openshift.io"
|
|
)
|
|
|
|
var (
|
|
schemeBuilder = runtime.NewSchemeBuilder(networkoperatorv1.Install)
|
|
// Install is a function which adds every version of this group to a scheme
|
|
Install = schemeBuilder.AddToScheme
|
|
)
|
|
|
|
func Resource(resource string) schema.GroupResource {
|
|
return schema.GroupResource{Group: GroupName, Resource: resource}
|
|
}
|
|
|
|
func Kind(kind string) schema.GroupKind {
|
|
return schema.GroupKind{Group: GroupName, Kind: kind}
|
|
}
|