diff --git a/charts/library/common/Chart.yaml b/charts/library/common/Chart.yaml index 0ff9defdd85..5a0f3c66fa8 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.12 +version: 8.3.13 diff --git a/charts/library/common/templates/_statefulset.tpl b/charts/library/common/templates/_statefulset.tpl index a7fd2bb3713..91b2105ae3d 100644 --- a/charts/library/common/templates/_statefulset.tpl +++ b/charts/library/common/templates/_statefulset.tpl @@ -3,6 +3,7 @@ This template serves as the blueprint for the StatefulSet objects that are creat within the common library. */}} {{- define "common.statefulset" }} +{{- $values := .Values }} {{- $releaseName := .Release.Name }} --- apiVersion: apps/v1 @@ -64,7 +65,7 @@ spec: storage: {{ required (printf "size is required for PVC %v" $vct.name) $vct.size | quote }} {{- if $vct.storageClass }} storageClassName: {{ if (eq "-" $vct.storageClass) }}""{{- else if (eq "SCALE-ZFS" $vct.storageClass ) }}{{ ( printf "%v-%v" "ix-storage-class" $releaseName ) }}{{- else }}{{ $vct.storageClass | quote }}{{- end }} - {{- else if .Values.ixChartContext }} + {{- else if $values.ixChartContext }} storageClassName: {{ printf "%v-%v" "ix-storage-class" .Release.Name }} {{- end }} {{- end }}