Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
Restrict namespace RBAC if scoped
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoodness committed Aug 14, 2017
1 parent a5eca07 commit fbe521c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions stable/nginx-ingress/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,19 @@ rules:
verbs:
- list
- watch
{{- if and .Values.controller.scope.enabled .Values.controller.scope.namespace }}
- apiGroups:
- ""
resources:
{{- if .Values.controller.scope.enabled }}
- namespaces
{{- end }}
resourceNames:
- "{{ .Values.controller.scope.namespace }}"
verbs:
- get
{{- end }}
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
Expand Down

0 comments on commit fbe521c

Please sign in to comment.