Skip to content

Commit 2d38993

Browse files
mnasiadkaAlex-Welsh
authored andcommitted
autoscaler: Update manifest per upstream
Change-Id: I5b4c55307acd822168645871bebe0a31eee0ee27 (cherry picked from commit e3561684dcc2508df69d271bc5d9666b48e3c86e) (cherry picked from commit a351884) (cherry picked from commit 29c99e9) (cherry picked from commit 4cd6339) (cherry picked from commit 85de7ef)
1 parent 15531ba commit 2d38993

File tree

1 file changed

+27
-31
lines changed

1 file changed

+27
-31
lines changed

magnum/drivers/common/templates/kubernetes/fragments/enable-auto-scaling.sh

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -30,54 +30,50 @@ rules:
3030
resources: ["leases"]
3131
resourceNames: ["cluster-autoscaler"]
3232
verbs: ["get", "update", "patch", "delete"]
33-
# TODO: remove in 1.18; CA uses lease objects for leader election since 1.17
3433
- apiGroups: [""]
35-
resources: ["endpoints"]
34+
resources: ["events", "endpoints"]
35+
verbs: ["create", "patch"]
36+
- apiGroups: [""]
37+
resources: ["pods/eviction"]
3638
verbs: ["create"]
39+
- apiGroups: [""]
40+
resources: ["pods/status"]
41+
verbs: ["update"]
3742
- apiGroups: [""]
3843
resources: ["endpoints"]
3944
resourceNames: ["cluster-autoscaler"]
40-
verbs: ["get", "update", "patch", "delete"]
41-
# accessing & modifying cluster state (nodes & pods)
45+
verbs: ["get", "update"]
4246
- apiGroups: [""]
4347
resources: ["nodes"]
44-
verbs: ["get", "list", "watch", "update", "patch"]
45-
- apiGroups: [""]
46-
resources: ["pods"]
47-
verbs: ["get", "list", "watch"]
48+
verbs: ["watch", "list", "get", "update"]
4849
- apiGroups: [""]
49-
resources: ["pods/eviction"]
50-
verbs: ["create"]
51-
# read-only access to cluster state
52-
- apiGroups: [""]
53-
resources: ["services", "replicationcontrollers", "persistentvolumes", "persistentvolumeclaims"]
54-
verbs: ["get", "list", "watch"]
55-
- apiGroups: ["apps"]
56-
resources: ["daemonsets", "replicasets"]
57-
verbs: ["get", "list", "watch"]
58-
- apiGroups: ["apps"]
59-
resources: ["statefulsets"]
60-
verbs: ["get", "list", "watch"]
50+
resources:
51+
- "namespaces"
52+
- "pods"
53+
- "services"
54+
- "replicationcontrollers"
55+
- "persistentvolumeclaims"
56+
- "persistentvolumes"
57+
verbs: ["watch", "list", "get"]
6158
- apiGroups: ["batch"]
6259
resources: ["jobs"]
63-
verbs: ["get", "list", "watch"]
60+
verbs: ["watch", "list", "get"]
6461
- apiGroups: ["policy"]
6562
resources: ["poddisruptionbudgets"]
66-
verbs: ["get", "list", "watch"]
63+
verbs: ["watch", "list"]
64+
- apiGroups: ["apps"]
65+
resources: ["daemonsets", "replicasets", "statefulsets"]
66+
verbs: ["watch", "list", "get"]
6767
- apiGroups: ["storage.k8s.io"]
68-
resources: ["storageclasses", "csinodes"]
69-
verbs: ["get", "list", "watch"]
70-
# misc access
71-
- apiGroups: [""]
72-
resources: ["events"]
73-
verbs: ["create", "update", "patch"]
68+
resources: ["storageclasses", "csinodes", "csidrivers", "csistoragecapacities"]
69+
verbs: ["watch", "list", "get"]
7470
- apiGroups: [""]
7571
resources: ["configmaps"]
76-
verbs: ["create"]
72+
verbs: ["create","list","watch"]
7773
- apiGroups: [""]
7874
resources: ["configmaps"]
79-
resourceNames: ["cluster-autoscaler-status"]
80-
verbs: ["get", "update", "patch", "delete"]
75+
resourceNames: ["cluster-autoscaler-status", "cluster-autoscaler-priority-expander"]
76+
verbs: ["delete", "get", "update"]
8177
---
8278
apiVersion: rbac.authorization.k8s.io/v1
8379
kind: ClusterRoleBinding

0 commit comments

Comments
 (0)