Skip to content

Commit 9ab8be0

Browse files
committed
Restrict create/delete verbs on nodes
Only few cloud providers actually need those verbs. - create: kwok - delete: kwok, huaweicloud So, it would be better to restrict them to only those providers, following the principle of least privilege. Signed-off-by: Mitsuo HEIJO <[email protected]>
1 parent 9befb31 commit 9ab8be0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

charts/cluster-autoscaler/templates/clusterrole.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,12 @@ rules:
5353
verbs:
5454
- watch
5555
- list
56+
{{- if (eq .Values.cloudProvider "kwok") }}
5657
- create
58+
{{- end }}
59+
{{- if or (eq .Values.cloudProvider "kwok") (eq .Values.cloudProvider "huaweicloud") }}
5760
- delete
61+
{{- end }}
5862
- get
5963
- update
6064
- apiGroups:

0 commit comments

Comments
 (0)