Files
open-cluster-management/vendor/github.com/openshift/api/sharedresource/install.go
Jian Qiu 5d86a958cb Update go to 1.17 (#108)
* Add interested field (#107)

* Add interested field

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* Add integration test

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* Resolve comments

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* Update go to 1.17

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2022-01-17 10:11:19 +01:00

27 lines
635 B
Go

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