We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 552cb2d commit c65b397Copy full SHA for c65b397
cmd/internal/codegen/parse/rbac.go
@@ -64,6 +64,14 @@ func parseRBACTag(tag string) rbacv1.PolicyRule {
64
values = strings.Split(value, ";")
65
switch kv[0] {
66
case "groups":
67
+ normalized := []string{}
68
+ for _, v := range values {
69
+ if v == "core" {
70
+ normalized = append(normalized, "")
71
+ } else {
72
+ normalized = append(normalized, v)
73
+ }
74
75
result.APIGroups = values
76
case "resources":
77
result.Resources = values
@@ -112,6 +120,9 @@ func parseInformerTag(tag string) v1.GroupVersionKind {
112
120
value := kv[1]
113
121
114
122
case "group":
123
+ if value == "" {
124
+ value = "core"
125
115
126
result.Group = value
116
127
case "version":
117
128
result.Version = value
0 commit comments