Skip to content

Commit 3e477e4

Browse files
committed
Update quota controller's role for Kube authorizer
This change normalizes the cluster-quota-reconciliation-controller's bootstrap role so that it will work with the Kubernetes authorizer which is case sensitive. Signed-off-by: Monis Khan <[email protected]>
1 parent b4a23e3 commit 3e477e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/cmd/server/bootstrappolicy/controller_policy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ func init() {
229229
addControllerRole(rbac.ClusterRole{
230230
ObjectMeta: metav1.ObjectMeta{Name: saRolePrefix + InfraClusterQuotaReconciliationControllerServiceAccountName},
231231
Rules: []rbac.PolicyRule{
232-
rbac.NewRule("get", "list").Groups(kapiGroup).Resources("configMaps").RuleOrDie(),
232+
rbac.NewRule("get", "list").Groups(kapiGroup).Resources("configmaps").RuleOrDie(),
233233
rbac.NewRule("get", "list").Groups(kapiGroup).Resources("secrets").RuleOrDie(),
234234
rbac.NewRule("update").Groups(quotaGroup, legacyQuotaGroup).Resources("clusterresourcequotas/status").RuleOrDie(),
235235
eventsRule(),

test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3741,7 +3741,7 @@ items:
37413741
- ""
37423742
attributeRestrictions: null
37433743
resources:
3744-
- configMaps
3744+
- configmaps
37453745
verbs:
37463746
- get
37473747
- list

0 commit comments

Comments
 (0)