fix(Common): correct SCALE detection on statefullset
This commit is contained in:
parent
8bc56fa8fd
commit
36723f774c
|
@ -15,4 +15,4 @@ maintainers:
|
|||
name: common
|
||||
sources: null
|
||||
type: library
|
||||
version: 8.3.12
|
||||
version: 8.3.13
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue