From 813f1b74d169fa8223ecbb3eb9731ddc6464768f Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Mon, 18 Apr 2022 11:02:18 +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 fd8025c..07936a7 100644 --- a/templates/cronjob.yaml +++ b/templates/cronjob.yaml @@ -80,6 +80,9 @@ spec: nodeSelector: {{- toYaml . | nindent 12 }} {{- end }} + {{- if .Values.podPriorityClassName }} + priorityClassName: {{ .Values.podPriorityClassName }} + {{- end }} restartPolicy: Never securityContext: {{- toYaml .Values.podSecurityContext | nindent 12 }} diff --git a/values.yaml b/values.yaml index 5c71ab8..07365d5 100644 --- a/values.yaml +++ b/values.yaml @@ -25,6 +25,8 @@ serviceAccount: podAnnotations: {} +podPriorityClassName: "" + podSecurityContext: {} # fsGroup: 2000