Skip to content

Commit

Permalink
Bump secretCSIVolumes and secretMounts TPL (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannah38 authored May 15, 2024
1 parent 4a306db commit d446fa5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion library/templates/v2/_container.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
{{- end }}
volumeMounts:
{{- ( include "hmcts.volumeMounts.v2" . ) | indent 2 }}
{{- ( include "hmcts.secretMounts.v2" . ) | indent 2 }}
{{- ( include "hmcts.secretMounts.v3" . ) | indent 2 }}
{{if $languageValues.global.devMode -}}
resources:
requests:
Expand Down
2 changes: 1 addition & 1 deletion library/templates/v2/_podtemplate.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ template:
{{- ( include "hmcts.dnsConfig.v2" . ) | indent 4 }}
volumes:
{{- ( include "hmcts.volumes.v2" . ) | indent 4 }}
{{- ( include "hmcts.secretCSIVolumes.v2" . ) | indent 4 }}
{{- ( include "hmcts.secretCSIVolumes.v3" . ) | indent 4 }}
restartPolicy: {{ $languageValues.restartPolicy | default "Always" | quote }}
terminationGracePeriodSeconds: {{ $languageValues.terminationGracePeriodSeconds | default 30 }}
containers:
Expand Down
4 changes: 2 additions & 2 deletions library/templates/v2/_secretcsivolumes.tpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{/*
The bit of templating needed to create the CSI driver keyvault for mounting
*/}}
{{- define "hmcts.secretCSIVolumes.v2" }}
{{- define "hmcts.secretCSIVolumes.v3" }}
{{- $languageValues := deepCopy .Values -}}
{{- if hasKey .Values "language" -}}
{{- $languageValues = (deepCopy .Values | merge (pluck .Values.language .Values | first) ) -}}
Expand All @@ -26,7 +26,7 @@ The bit of templating needed to create the CSI driver keyvault for mounting
{{/*
Mount the Key vaults on /mnt/secrets by default or the custom mountPath
*/}}
{{- define "hmcts.secretMounts.v2" -}}
{{- define "hmcts.secretMounts.v3" -}}
{{- $languageValues := deepCopy .Values -}}
{{- if hasKey .Values "language" -}}
{{- $languageValues = (deepCopy .Values | merge (pluck .Values.language .Values | first) ) -}}
Expand Down

0 comments on commit d446fa5

Please sign in to comment.