Skip to content

Commit

Permalink
Add value for priorityClassName
Browse files Browse the repository at this point in the history
  • Loading branch information
MM53 committed Aug 29, 2024
1 parent 9fd8504 commit be653f9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ spec:
volumeMounts:
- mountPath: /var/run/podinfo
name: podinfo
{{- if .Values.controller.priorityClassName }}
priorityClassName: {{ .Values.controller.priorityClassName }}
{{- end }}
securityContext:
{{- toYaml .Values.controller.podSecurityContext | nindent 8 }}
serviceAccountName: {{ include "vso.chart.fullname" . }}-controller-manager
Expand Down Expand Up @@ -215,6 +218,9 @@ spec:
securityContext:
{{- toYaml .| nindent 10 }}
{{- end}}
{{- if .Values.controller.priorityClassName }}
priorityClassName: {{ .Values.controller.priorityClassName }}
{{- end }}
restartPolicy: Never
{{- with .Values.controller.nodeSelector }}
nodeSelector:
Expand Down
3 changes: 3 additions & 0 deletions chart/templates/hook-upgrade-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ spec:
securityContext:
{{- toYaml .| nindent 10 }}
{{- end}}
{{- if .Values.controller.priorityClassName }}
priorityClassName: {{ .Values.controller.priorityClassName }}
{{- end }}
restartPolicy: Never
{{- with .Values.controller.nodeSelector }}
nodeSelector:
Expand Down
4 changes: 4 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ controller:
# @type: integer
replicas: 1

# Set the priority class for the operator.
# @type: string
priorityClassName: ""

# Configure update strategy for multi-replica deployments.
# Kubernetes supports types Recreate, and RollingUpdate
# ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
Expand Down

0 comments on commit be653f9

Please sign in to comment.