Skip to content

Commit 2f85481

Browse files
committed
Add value for priorityClassName
1 parent c690bdd commit 2f85481

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

chart/templates/deployment.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ spec:
135135
volumeMounts:
136136
- mountPath: /var/run/podinfo
137137
name: podinfo
138+
{{- if .Values.controller.priorityClassName }}
139+
priorityClassName: {{ .Values.controller.priorityClassName }}
140+
{{- end }}
138141
securityContext:
139142
{{- toYaml .Values.controller.podSecurityContext | nindent 8 }}
140143
serviceAccountName: {{ include "vso.chart.fullname" . }}-controller-manager
@@ -218,6 +221,9 @@ spec:
218221
securityContext:
219222
{{- toYaml .| nindent 10 }}
220223
{{- end}}
224+
{{- if .Values.controller.priorityClassName }}
225+
priorityClassName: {{ .Values.controller.priorityClassName }}
226+
{{- end }}
221227
restartPolicy: Never
222228
{{- with .Values.controller.nodeSelector }}
223229
nodeSelector:

chart/templates/hook-upgrade-crds.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ spec:
106106
securityContext:
107107
{{- toYaml .| nindent 10 }}
108108
{{- end}}
109+
{{- if .Values.controller.priorityClassName }}
110+
priorityClassName: {{ .Values.controller.priorityClassName }}
111+
{{- end }}
109112
restartPolicy: Never
110113
{{- with .Values.controller.nodeSelector }}
111114
nodeSelector:

chart/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ controller:
88
# @type: integer
99
replicas: 1
1010

11+
# Set the priority class for the operator.
12+
# @type: string
13+
priorityClassName: ""
14+
1115
# Configure update strategy for multi-replica deployments.
1216
# Kubernetes supports types Recreate, and RollingUpdate
1317
# ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy

0 commit comments

Comments
 (0)