From 2a9672ee7474107fdd613c04abc437cba89c7eb9 Mon Sep 17 00:00:00 2001 From: wkbrd <30599409+wkbrd@users.noreply.github.com> Date: Thu, 9 May 2024 16:02:57 -0400 Subject: [PATCH] Update cronjob.yaml --- templates/cronjob.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/cronjob.yaml b/templates/cronjob.yaml index c90ab15..780cf87 100644 --- a/templates/cronjob.yaml +++ b/templates/cronjob.yaml @@ -37,8 +37,8 @@ spec: {{- if .Values.priorityClassName }} priorityClassName: "{{ .Values.priorityClassName }}" {{- end }} - {{- if .Values.podSecurityContext.enabled }} - securityContext: {{ omit .Values.podSecurityContext "enabled" | toYaml | nindent 12 }} + {{- if .Values.securityContext.enabled }} + securityContext: {{ omit .Values.securityContext "enabled" | toYaml | nindent 12 }} {{- end }} containers: - name: {{ .Chart.Name }}