Skip to content

Commit 5c59679

Browse files
committed
migrate misplaced RBAC in Helm chart
Signed-off-by: Elad Dolev <[email protected]>
1 parent 0a14853 commit 5c59679

File tree

1 file changed

+5
-5
lines changed
  • manifests/install/charts/as-a-second-scheduler/templates

1 file changed

+5
-5
lines changed

manifests/install/charts/as-a-second-scheduler/templates/rbac.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ rules:
7474
resources: [ "networktopologies" ]
7575
verbs: [ "get", "list", "watch", "create", "delete", "update", "patch" ]
7676
{{- end }}
77+
{{- if has "PreemptionToleration" .Values.plugins.enabled }}
78+
- apiGroups: ["scheduling.k8s.io"]
79+
resources: ["priorityclasses"]
80+
verbs: ["get", "list", "watch"]
81+
{{- end }}
7782
{{- if has "SySched" .Values.plugins.enabled }}
7883
- apiGroups: ["security-profiles-operator.x-k8s.io"]
7984
resources: ["seccompprofiles", "profilebindings"]
@@ -114,11 +119,6 @@ rules:
114119
resources: ["podgroups", "elasticquotas", "podgroups/status", "elasticquotas/status"]
115120
verbs: ["get", "list", "watch", "create", "delete", "update", "patch"]
116121
{{- /* resources need to be updated with the scheduler plugins used */}}
117-
{{- if has "PreemptionToleration" .Values.plugins.enabled }}
118-
- apiGroups: ["scheduling.k8s.io"]
119-
resources: ["priorityclasses"]
120-
verbs: ["get", "list", "watch"]
121-
{{- end }}
122122
{{- if has "SySched" .Values.plugins.enabled }}
123123
- apiGroups: ["security-profiles-operator.x-k8s.io"]
124124
resources: ["seccompprofiles", "profilebindings"]

0 commit comments

Comments
 (0)