From b98f8ded87ccde741830b80d252b270b0f23d88e Mon Sep 17 00:00:00 2001 From: kjeld Schouten-Lebbing Date: Mon, 18 Oct 2021 20:24:26 +0200 Subject: [PATCH] fix(common): Copy ixChartContext.storageClassName to child charts --- charts/library/common/Chart.yaml | 2 +- .../templates/lib/dependencies/_postgresInjector.tpl | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/library/common/Chart.yaml b/charts/library/common/Chart.yaml index ef755a682b7..0ff9defdd85 100644 --- a/charts/library/common/Chart.yaml +++ b/charts/library/common/Chart.yaml @@ -15,4 +15,4 @@ maintainers: name: common sources: null type: library -version: 8.3.11 +version: 8.3.12 diff --git a/charts/library/common/templates/lib/dependencies/_postgresInjector.tpl b/charts/library/common/templates/lib/dependencies/_postgresInjector.tpl index c7467c6dba4..aba2e7035cf 100644 --- a/charts/library/common/templates/lib/dependencies/_postgresInjector.tpl +++ b/charts/library/common/templates/lib/dependencies/_postgresInjector.tpl @@ -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 -}}