kubevirt.io/api@v1.2.0/instancetype/register.go (about) 1 /* 2 * This file is part of the KubeVirt project 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 * Copyright 2021 Red Hat, Inc. 17 * 18 */ 19 20 package instancetype 21 22 // GroupName is the group name used in this package 23 const ( 24 GroupName = "instancetype.kubevirt.io" 25 26 SingularResourceName = "virtualmachineinstancetype" 27 PluralResourceName = SingularResourceName + "s" 28 29 ClusterSingularResourceName = "virtualmachineclusterinstancetype" 30 ClusterPluralResourceName = ClusterSingularResourceName + "s" 31 32 SingularPreferenceResourceName = "virtualmachinepreference" 33 PluralPreferenceResourceName = SingularPreferenceResourceName + "s" 34 35 ClusterSingularPreferenceResourceName = "virtualmachineclusterpreference" 36 ClusterPluralPreferenceResourceName = ClusterSingularPreferenceResourceName + "s" 37 ) 38 39 const ( 40 DefaultInstancetypeLabel = "instancetype.kubevirt.io/default-instancetype" 41 DefaultInstancetypeKindLabel = "instancetype.kubevirt.io/default-instancetype-kind" 42 DefaultPreferenceLabel = "instancetype.kubevirt.io/default-preference" 43 DefaultPreferenceKindLabel = "instancetype.kubevirt.io/default-preference-kind" 44 ) 45 46 const ( 47 ControllerRevisionObjectGenerationLabel = "instancetype.kubevirt.io/object-generation" 48 ControllerRevisionObjectKindLabel = "instancetype.kubevirt.io/object-kind" 49 ControllerRevisionObjectNameLabel = "instancetype.kubevirt.io/object-name" 50 ControllerRevisionObjectUIDLabel = "instancetype.kubevirt.io/object-uid" 51 ControllerRevisionObjectVersionLabel = "instancetype.kubevirt.io/object-version" 52 )