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 {
8282// Repository type metadata.
8383var (
8484 { { .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()
8686 { { .CRD.Kind } }KindAPIVersion = { { .CRD.Kind } }Kind + "." + GroupVersion.String()
8787 { { .CRD.Kind } }GroupVersionKind = GroupVersion.WithKind({ { .CRD.Kind } }Kind)
8888)
Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ import (
1111
1212// Package type metadata.
1313const (
14- Group = "{ { .APIGroup } }"
15- Version = "{ { .APIVersion } }"
14+ CRDGroup = "{ { .APIGroup } }"
15+ CRDVersion = "{ { .APIVersion } }"
1616)
1717
1818var (
1919 // 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 }
2121
2222 // SchemeBuilder is used to add go types to the GroupVersionKind scheme
2323 SchemeBuilder = &scheme.Builder{ GroupVersion: GroupVersion}
You can’t perform that action at this time.
0 commit comments