Rename variable

This commit is contained in:
Darren Shepherd
2020-02-10 20:54:33 -07:00
parent 433a39dcab
commit 3a8e216ec8
3 changed files with 11 additions and 11 deletions

View File

@@ -8,7 +8,7 @@ import (
const (
rbacGroup = "rbac.authorization.k8s.io"
all = "*"
All = "*"
)
type policyRuleIndex struct {
@@ -102,7 +102,7 @@ func (p *policyRuleIndex) addAccess(accessSet *AccessSet, namespace string, role
for _, resource := range rule.Resources {
names := rule.ResourceNames
if len(names) == 0 {
names = []string{all}
names = []string{All}
}
for _, resourceName := range names {
for _, verb := range rule.Verbs {