File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
cmd/internal/codegen/parse Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,17 +29,17 @@ import (
29
29
// parseIndex indexes all types with the comment "// +resource=RESOURCE" by GroupVersionKind and
30
30
// GroupKindVersion
31
31
func (b * APIs ) parseIndex () {
32
- // Index resource by group version kind
32
+ // Index resource by group, version, kind
33
33
b .ByGroupVersionKind = map [string ]map [string ]map [string ]* codegen.APIResource {}
34
34
35
35
// Index resources by group, kind, version
36
36
b .ByGroupKindVersion = map [string ]map [string ]map [string ]* codegen.APIResource {}
37
37
38
- // Index subresources
38
+ // Index subresources by group, version, kind
39
39
b .SubByGroupVersionKind = map [string ]map [string ]map [string ]* types.Type {}
40
40
41
41
for _ , c := range b .context .Order {
42
- // The type is a subresource, add it to the
42
+ // The type is a subresource, add it to the subresource index
43
43
if IsAPISubresource (c ) {
44
44
group := GetGroup (c )
45
45
version := GetVersion (c , group )
You can’t perform that action at this time.
0 commit comments