@@ -74,6 +74,11 @@ rules:
74
74
resources : [ "networktopologies" ]
75
75
verbs : [ "get", "list", "watch", "create", "delete", "update", "patch" ]
76
76
{{- end }}
77
+ {{- if has "PreemptionToleration" .Values.plugins.enabled }}
78
+ - apiGroups : ["scheduling.k8s.io"]
79
+ resources : ["priorityclasses"]
80
+ verbs : ["get", "list", "watch"]
81
+ {{- end }}
77
82
{{- if has "SySched" .Values.plugins.enabled }}
78
83
- apiGroups : ["security-profiles-operator.x-k8s.io"]
79
84
resources : ["seccompprofiles", "profilebindings"]
@@ -114,11 +119,6 @@ rules:
114
119
resources : ["podgroups", "elasticquotas", "podgroups/status", "elasticquotas/status"]
115
120
verbs : ["get", "list", "watch", "create", "delete", "update", "patch"]
116
121
{{- /* 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 }}
122
122
{{- if has "SySched" .Values.plugins.enabled }}
123
123
- apiGroups : ["security-profiles-operator.x-k8s.io"]
124
124
resources : ["seccompprofiles", "profilebindings"]
0 commit comments