Skip to content

Commit fc0b91c

Browse files
authored
fix: Wrong ClusterRole name in caches ClusterRoleBinding (#605)
**Issue:** ``` Failed to watch *v1.Namespace: failed to list *v1.Namespace: namespaces is forbidden: User \"system:serviceaccount:ack:ack-iam\" cannot list resource \"namespaces\" in API group \"\" at the cluster scope: RBAC: clusterrole.rbac.authorization.k8s.io \"ack-iam-iam-chart-namespace-caches\" not found" ``` ClusterRoleBinding can not mount ClusterRole `ack-iam-iam-chart-namespace-caches` because it doesnt exist. **Description of changes:** Fix the naming of ClusterRoleBinding and ClusterRole attached to it. **Fixes issue from PR:** #593 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 2122428 commit fc0b91c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/helm/templates/caches-role-binding.yaml.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: rbac.authorization.k8s.io/v1
22
kind: ClusterRoleBinding
33
metadata:
4-
name: {{ IncludeTemplate "app.fullname" }}-namespace-caches
4+
name: {{ IncludeTemplate "app.fullname" }}-namespaces-cache
55
labels:
66
app.kubernetes.io/name: {{ IncludeTemplate "app.name" }}
77
app.kubernetes.io/instance: {{ "{{ .Release.Name }}" }}
@@ -12,7 +12,7 @@ metadata:
1212
roleRef:
1313
kind: ClusterRole
1414
apiGroup: rbac.authorization.k8s.io
15-
name: {{ IncludeTemplate "app.fullname" }}-namespace-caches
15+
name: {{ IncludeTemplate "app.fullname" }}-namespaces-cache
1616
subjects:
1717
- kind: ServiceAccount
1818
name: {{ IncludeTemplate "service-account.name" }}

0 commit comments

Comments
 (0)