diff --git a/charts/navi-castle/templates/cronjob.yaml b/charts/navi-castle/templates/cronjob.yaml index 87dde3969..a12ee3f5d 100644 --- a/charts/navi-castle/templates/cronjob.yaml +++ b/charts/navi-castle/templates/cronjob.yaml @@ -38,7 +38,7 @@ spec: - name: {{ include "castle.fullname" $ }}-builder-config configMap: name: {{ include "castle.fullname" $ }}-builder-config - {{- if .Values.customCAs.bundle }} + {{- if $.Values.customCAs.bundle }} - name: {{ include "castle.fullname" $ }}-ca configMap: name: {{ include "castle.fullname" $ }}-ca @@ -53,7 +53,7 @@ spec: - /opt/config_builder.conf - --service={{ include "castle.serviceParameter" ( dict "flavor" $flavor ) }} - --jobs={{ $.Values.castle.jobs | default 1 | int }} - {{- if .Values.customCAs.bundle }} + {{- if $.Values.customCAs.bundle }} env: - name: SSL_CERT_FILE value: {{ include "custom.ca.mountPath" . }}/custom-ca.crt @@ -65,7 +65,7 @@ spec: - name: {{ include "castle.fullname" $ }}-builder-config mountPath: {{ $.Values.castle.castleDataPath }}/cities_template subPath: cities_template - {{- if .Values.customCAs.bundle }} + {{- if $.Values.customCAs.bundle }} - name: {{ include "castle.fullname" $ }}-ca mountPath: {{ include "custom.ca.mountPath" . }}/custom-ca.crt subPath: custom-ca.crt