sigs.k8s.io/kueue@v0.6.2/apis/visibility/v1alpha1/groupversion_info.go (about) 1 /* 2 Copyright 2023 The Kubernetes Authors. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 // Package v1alpha1 contains API Schema definitions for the pending workloads kueue v1alpha1 API group 18 // +kubebuilder:object:generate=true 19 // +kubebuilder:skip 20 // +groupName=visibility.kueue.x-k8s.io 21 // +k8s:openapi-gen=true 22 // +k8s:conversion-gen=false 23 24 package v1alpha1 25 26 import ( 27 "k8s.io/apimachinery/pkg/runtime/schema" 28 "sigs.k8s.io/controller-runtime/pkg/scheme" 29 ) 30 31 var ( 32 // GroupVersion is group version used to register these objects. 33 GroupVersion = schema.GroupVersion{Group: "visibility.kueue.x-k8s.io", Version: "v1alpha1"} 34 35 // SchemeGroupVersion is alias to GroupVersion for client-go libraries. 36 // It is required by pkg/client/informers/externalversions/... 37 SchemeGroupVersion = GroupVersion 38 39 // SchemeBuilder is used to add go types to the GroupVersionKind scheme 40 SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} 41 42 // localSchemeBuilder is used to register autogenerated conversion and defaults functions 43 // It is required by ./zz_generated.conversion.go and ./zz_generated.defaults.go 44 localSchemeBuilder = &SchemeBuilder.SchemeBuilder 45 46 // AddToScheme adds the types in this group-version to the given scheme. 47 AddToScheme = SchemeBuilder.AddToScheme 48 ) 49 50 // Resource is required by pkg/client/listers/... 51 func Resource(resource string) schema.GroupResource { 52 return GroupVersion.WithResource(resource).GroupResource() 53 }