fix(common): Copy ixChartContext.storageClassName to child charts

This commit is contained in:
kjeld Schouten-Lebbing
2021-10-18 20:24:26 +02:00
parent a9e2295eeb
commit b98f8ded87
2 changed files with 8 additions and 1 deletions

View File

@@ -15,4 +15,4 @@ maintainers:
name: common
sources: null
type: library
version: 8.3.11
version: 8.3.12

View File

@@ -37,5 +37,12 @@ type: Opaque
{{- $_ := set .Values.postgresql.url "complete" ( ( printf "postgresql://%v:%v@%v-postgresql:5432/%v" .Values.postgresql.postgresqlUsername $dbPass .Release.Name .Values.postgresql.postgresqlDatabase ) | quote ) }}
{{- $_ := set .Values.postgresql.url "jdbc" ( ( printf "jdbc:postgresql://%v-postgresql:5432/%v" .Release.Name .Values.postgresql.postgresqlDatabase ) | quote ) }}
{{/*
Also inject the storageClassName into the child chart
*/}}
{{- if .Values.ixChartContext }}
{{- $_ := set .Values.postgresql "ixChartContext" ( dict "storageClassName" ".Values.ixChartContext.storageClassName" ) }}
{{- end }}
{{- end }}
{{- end -}}