@@ -20,17 +20,37 @@ limitations under the License.
20
20
package v1alpha1
21
21
22
22
import (
23
+ "reflect"
24
+
23
25
"k8s.io/apimachinery/pkg/runtime/schema"
24
26
"sigs.k8s.io/controller-runtime/pkg/scheme"
25
27
)
26
28
27
29
var (
28
- // GroupVersion is group version used to register these objects
29
- GroupVersion = schema.GroupVersion {Group : "validation.spectrocloud.labs" , Version : "v1alpha1" }
30
+ // APIVersion is the API version used to reference v1alpha1 objects.
31
+ APIVersion = GroupVersion .String ()
32
+
33
+ // Group is the API group used to reference validator objects.
34
+ Group = "validation.spectrocloud.labs"
30
35
31
- // SchemeBuilder is used to add go types to the GroupVersionKind scheme
36
+ // GroupVersion is group version used to register these objects.
37
+ GroupVersion = schema.GroupVersion {Group : Group , Version : "v1alpha1" }
38
+
39
+ // SchemeBuilder is used to add go types to the GroupVersionKind scheme.
32
40
SchemeBuilder = & scheme.Builder {GroupVersion : GroupVersion }
33
41
34
42
// AddToScheme adds the types in this group-version to the given scheme.
35
43
AddToScheme = SchemeBuilder .AddToScheme
44
+
45
+ // ValidatorConfigKind is the kind of the ValidatorConfig object.
46
+ ValidatorConfigKind = reflect .TypeOf (ValidatorConfig {}).Name ()
47
+
48
+ // ValidatorConfigGroupResource is the name of the ValidatorConfig resource.
49
+ ValidatorConfigGroupResource = schema.GroupResource {Group : Group , Resource : "validatorconfigs" }
50
+
51
+ // ValidationResultKind is the kind of the ValidationResult object.
52
+ ValidationResultKind = reflect .TypeOf (ValidationResult {}).Name ()
53
+
54
+ // ValidationResultGroupResource is the name of the ValidationResult resource.
55
+ ValidationResultGroupResource = schema.GroupResource {Group : Group , Resource : "validationresults" }
36
56
)
0 commit comments