Files
open-cluster-management/vendor/github.com/openshift/api/network/install.go
Jian Qiu 01521e3e1e Bump to kube-0.29.0 (#348)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
2024-01-18 08:14:32 +00:00

28 lines
696 B
Go

package network
import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
networkv1 "github.com/openshift/api/network/v1"
networkv1alpha1 "github.com/openshift/api/network/v1alpha1"
)
const (
GroupName = "network.openshift.io"
)
var (
schemeBuilder = runtime.NewSchemeBuilder(networkv1.Install, networkv1alpha1.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}
}