Skip to content

Commit 804e189

Browse files
authored
Merge pull request #8647 from johejo/restrict_nodes_verbs_for_ca
Restrict create/delete verbs on nodes
2 parents f15e590 + 006f34a commit 804e189

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cluster-autoscaler/charts/cluster-autoscaler/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ name: cluster-autoscaler
1111
sources:
1212
- https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler
1313
type: application
14-
version: 9.52.0
14+
version: 9.52.1

cluster-autoscaler/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)