Skip to content

Commit 25bfd3c

Browse files
committed
add permissions for managing namespaces in admission rules
Signed-off-by: suyiiyii <[email protected]>
1 parent b27b2a9 commit 25bfd3c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

installer/helm/chart/volcano/templates/admission.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ rules:
6363
- apiGroups: ["scheduling.incubator.k8s.io", "scheduling.volcano.sh"]
6464
resources: ["podgroups"]
6565
verbs: ["get", "list", "watch"]
66+
{{- if .Values.custom.enabled_admissions | regexMatch "/podgroups/mutate" }}
67+
- apiGroups: [""]
68+
resources: ["namespaces"]
69+
verbs: ["get", "list", "watch"]
70+
{{- end }}
6671

6772
---
6873
kind: ClusterRoleBinding

0 commit comments

Comments
 (0)