Skip to content

Commit

Permalink
Fix customCAs include in navi-castle cronjob template
Browse files Browse the repository at this point in the history
  • Loading branch information
Efber committed Oct 3, 2024
1 parent a49f257 commit 9db512e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/navi-castle/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9db512e

Please sign in to comment.