github.com/tototoman/operator-sdk@v0.8.2/test/test-framework/pkg/apis/cache/v1alpha1/register.go (about) 1 // Copyright 2018 The Operator-SDK Authors 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // NOTE: Boilerplate only. Ignore this file. 16 17 // Package v1alpha1 contains API Schema definitions for the cache v1alpha1 API group 18 // +k8s:deepcopy-gen=package,register 19 // +groupName=cache.example.com 20 package v1alpha1 21 22 import ( 23 "k8s.io/apimachinery/pkg/runtime/schema" 24 "sigs.k8s.io/controller-runtime/pkg/runtime/scheme" 25 ) 26 27 var ( 28 // SchemeGroupVersion is group version used to register these objects 29 SchemeGroupVersion = schema.GroupVersion{Group: "cache.example.com", Version: "v1alpha1"} 30 31 // SchemeBuilder is used to add go types to the GroupVersionKind scheme 32 SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} 33 )