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