Skip to content

Commit

Permalink
fix: address '--reuse-values' upgrade issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aroberts87 committed Oct 10, 2024
1 parent 03a65c5 commit 19df91f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/shield/templates/cluster/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -103,22 +103,28 @@ If release name contains chart name it will be used as a full name.
{{- end -}}

{{- define "cluster.env" -}}
{{- if and .Values.env .Values.cluster.env -}}
{{- $env := concat .Values.env .Values.cluster.env -}}
{{- with $env -}}
{{- . | toYaml -}}
{{- end -}}
{{- end -}}
{{- end -}}

{{- define "cluster.volumes" -}}
{{- if and .Values.volumes .Values.cluster.volumes -}}
{{- $volumes := concat .Values.volumes .Values.cluster.volumes -}}
{{- with $volumes -}}
{{- . | toYaml -}}
{{- end -}}
{{- end -}}
{{- end -}}

{{- define "cluster.volume_mounts" -}}
{{- if and .Values.volume_mounts .Values.cluster.volume_mounts -}}
{{- $volumeMounts := concat .Values.volume_mounts .Values.cluster.volume_mounts -}}
{{- with $volumeMounts -}}
{{- . | toYaml -}}
{{- end -}}
{{- end -}}
{{- end -}}
6 changes: 6 additions & 0 deletions charts/shield/templates/host/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -115,22 +115,28 @@ true
{{- end }}

{{- define "host.env" -}}
{{- if and .Values.env .Values.host.env -}}
{{- $env := concat .Values.env .Values.host.env -}}
{{- with $env -}}
{{- . | toYaml -}}
{{- end -}}
{{- end -}}
{{- end -}}

{{- define "host.volumes" -}}
{{- if and .Values.volumes .Values.host.volumes -}}
{{- $volumes := concat .Values.volumes .Values.host.volumes -}}
{{- with $volumes -}}
{{- . | toYaml -}}
{{- end -}}
{{- end -}}
{{- end -}}

{{- define "host.volume_mounts" -}}
{{- if and .Values.volume_mounts .Values.host.volume_mounts -}}
{{- $volumeMounts := concat .Values.volume_mounts .Values.host.volume_mounts -}}
{{- with $volumeMounts -}}
{{- . | toYaml -}}
{{- end -}}
{{- end -}}
{{- end -}}

0 comments on commit 19df91f

Please sign in to comment.