...
1 package authorization
2
3 import (
4 "k8s.io/apimachinery/pkg/runtime"
5 "k8s.io/apimachinery/pkg/runtime/schema"
6
7 authorizationv1 "github.com/openshift/api/authorization/v1"
8 )
9
10 const (
11 GroupName = "authorization.openshift.io"
12 )
13
14 var (
15 schemeBuilder = runtime.NewSchemeBuilder(authorizationv1.Install)
16
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