Skip to content

Commit 6c876bb

Browse files
authored
fix: disable cluster wide controller role permissions (#10659)
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
1 parent 648cb8b commit 6c876bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

charts/ingress-nginx/templates/controller-role.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,15 @@ rules:
4444
- get
4545
- list
4646
- watch
47+
# Omit Ingress status permissions if `--update-status` is disabled.
48+
{{- if ne (index .Values.controller.extraArgs "update-status") "false" }}
4749
- apiGroups:
4850
- networking.k8s.io
4951
resources:
5052
- ingresses/status
5153
verbs:
5254
- update
55+
{{- end }}
5356
- apiGroups:
5457
- networking.k8s.io
5558
resources:

0 commit comments

Comments
 (0)