mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-06 14:11:22 -03:00
Update _storage.tpl (#22)
* Update _storage.tpl * Update _storage.tpl * Update _storage.tpl
This commit is contained in:
committed by
GitHub
parent
3377f82204
commit
0f4fb2af79
@@ -5,10 +5,11 @@ Return the proper Storage Class
|
||||
*/}}
|
||||
{{- define "common.storage.class" -}}
|
||||
|
||||
{{- $storageClass := .persistence.storageClass -}}
|
||||
{{- $storageClass := .persistence.storageClass -}}
|
||||
{{- $output := "" -}}
|
||||
|
||||
{{- if $storageClass -}}
|
||||
{{- if ( hasKey .persistence "storageClass" ) -}}
|
||||
{{- if $storageClass -}}
|
||||
{{- if (eq "-" $storageClass) -}}
|
||||
{{- $output = "\"\"" -}}
|
||||
{{- else if (eq "SCALE-ZFS" $storageClass ) }}
|
||||
@@ -16,6 +17,8 @@ Return the proper Storage Class
|
||||
{{- else }}
|
||||
{{- $output = $storageClass -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- printf "storageClassName: %s" $output -}}
|
||||
{{- else if .global }}
|
||||
{{- if .global.Values.storageClass -}}
|
||||
{{- $output = .global.Values.storageClass -}}
|
||||
@@ -29,7 +32,7 @@ Return the proper Storage Class
|
||||
{{- $output = ( printf "ix-storage-class-%s" .global.Release.Name ) -}}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- printf "storageClassName: %s" $output -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user