27 lines
600 B
Go
27 lines
600 B
Go
package quota
|
|
|
|
import (
|
|
"k8s.io/apimachinery/pkg/runtime"
|
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
|
|
|
quotav1 "github.com/openshift/api/quota/v1"
|
|
)
|
|
|
|
const (
|
|
GroupName = "quota.openshift.io"
|
|
)
|
|
|
|
var (
|
|
schemeBuilder = runtime.NewSchemeBuilder(quotav1.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}
|
|
}
|