File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
templates/crossplane/apis Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ type {{ .CRD.Kind }}List struct {
82
82
// Repository type metadata.
83
83
var (
84
84
{ { .CRD.Kind } }Kind = "{ { .CRD.Kind } }"
85
- { { .CRD.Kind } }GroupKind = schema.GroupKind{ Group: Group , Kind: {{ .CRD.Kind } }Kind}.String()
85
+ { { .CRD.Kind } }GroupKind = schema.GroupKind{ Group: CRDGroup , Kind: {{ .CRD.Kind } }Kind}.String()
86
86
{ { .CRD.Kind } }KindAPIVersion = { { .CRD.Kind } }Kind + "." + GroupVersion.String()
87
87
{ { .CRD.Kind } }GroupVersionKind = GroupVersion.WithKind({ { .CRD.Kind } }Kind)
88
88
)
Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ import (
11
11
12
12
// Package type metadata.
13
13
const (
14
- Group = "{ { .APIGroup } }"
15
- Version = "{ { .APIVersion } }"
14
+ CRDGroup = "{ { .APIGroup } }"
15
+ CRDVersion = "{ { .APIVersion } }"
16
16
)
17
17
18
18
var (
19
19
// GroupVersion is the API Group Version used to register the objects
20
- GroupVersion = schema.GroupVersion{ Group: Group , Version: Version }
20
+ GroupVersion = schema.GroupVersion{ Group: CRDGroup , Version: CRDVersion }
21
21
22
22
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
23
23
SchemeBuilder = &scheme.Builder{ GroupVersion: GroupVersion}
You can’t perform that action at this time.
0 commit comments