Skip to content

Commit 25328c5

Browse files
committed
Fix comments in index parser
1 parent 5c2f3d8 commit 25328c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/internal/codegen/parse/index.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ import (
2929
// parseIndex indexes all types with the comment "// +resource=RESOURCE" by GroupVersionKind and
3030
// GroupKindVersion
3131
func (b *APIs) parseIndex() {
32-
// Index resource by group version kind
32+
// Index resource by group, version, kind
3333
b.ByGroupVersionKind = map[string]map[string]map[string]*codegen.APIResource{}
3434

3535
// Index resources by group, kind, version
3636
b.ByGroupKindVersion = map[string]map[string]map[string]*codegen.APIResource{}
3737

38-
// Index subresources
38+
// Index subresources by group, version, kind
3939
b.SubByGroupVersionKind = map[string]map[string]map[string]*types.Type{}
4040

4141
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
4343
if IsAPISubresource(c) {
4444
group := GetGroup(c)
4545
version := GetVersion(c, group)

0 commit comments

Comments
 (0)