From 9e2deacbd23e9edc5fd62a065611b6e51f24289a Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Mon, 18 Apr 2022 11:01:09 +0200 Subject: [PATCH] feat: support pod priorityClassName --- templates/cronjob.yaml | 3 +++ values.yaml | 2 ++ 2 files changed, 5 insertions(+) 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