diff --git a/templates/cronjob.yaml b/templates/cronjob.yaml index 906d2b4..a03a849 100644 --- a/templates/cronjob.yaml +++ b/templates/cronjob.yaml @@ -42,6 +42,9 @@ spec: nodeSelector: {{- toYaml . | nindent 12 }} {{- end }} + {{- if .Values.podPriorityClassName }} + priorityClassName: {{ .Values.podPriorityClassName }} + {{- end }} restartPolicy: OnFailure securityContext: {{- toYaml .Values.podSecurityContext | nindent 12 }} diff --git a/values.yaml b/values.yaml index 70bd41b..f6c9ac1 100644 --- a/values.yaml +++ b/values.yaml @@ -23,6 +23,8 @@ serviceAccount: podAnnotations: {} +podPriorityClassName: "" + podSecurityContext: {} # fsGroup: 2000