mirror of
https://github.com/truenas/charts.git
synced 2026-06-28 00:06:45 +08:00
rename function
This commit is contained in:
@@ -50,7 +50,7 @@ spec:
|
|||||||
{{- with $objectData.volumeName }}
|
{{- with $objectData.volumeName }}
|
||||||
volumeName: {{ tpl . $rootCtx }}
|
volumeName: {{ tpl . $rootCtx }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- with (include "ix.v1.common.lib.pvc.storageClassName" (dict "rootCtx" $rootCtx "objectData" $objectData "caller" "PVC") | trim) }}
|
{{- with (include "ix.v1.common.lib.storage.storageClassName" (dict "rootCtx" $rootCtx "objectData" $objectData "caller" "PVC") | trim) }}
|
||||||
storageClassName: {{ . }}
|
storageClassName: {{ . }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
{{/* PVC - Storage Class Name */}}
|
{{/* PVC - Storage Class Name */}}
|
||||||
{{/* Call this template:
|
{{/* Call this template:
|
||||||
{{ include "ix.v1.common.lib.pvc.storageClassName" (dict "rootCtx" $rootCtx "objectData" $objectData) -}}
|
{{ include "ix.v1.common.lib.storage.storageClassName" (dict "rootCtx" $rootCtx "objectData" $objectData) -}}
|
||||||
rootCtx: The root context of the chart.
|
rootCtx: The root context of the chart.
|
||||||
objectData: The object data of the pvc
|
objectData: The object data of the pvc
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "ix.v1.common.lib.pvc.storageClassName" -}}
|
{{- define "ix.v1.common.lib.storage.storageClassName" -}}
|
||||||
{{- $objectData := .objectData -}}
|
{{- $objectData := .objectData -}}
|
||||||
{{- $rootCtx := .rootCtx -}}
|
{{- $rootCtx := .rootCtx -}}
|
||||||
{{- $caller := .caller -}}
|
{{- $caller := .caller -}}
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ objectData: The object data to be used to render the Pod.
|
|||||||
{{- . | nindent 6 }}
|
{{- . | nindent 6 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- with (include "ix.v1.common.lib.pvc.storageClassName" (dict "rootCtx" $rootCtx "objectData" $vct "caller" "Volume Claim Templates") | trim) }}
|
{{- with (include "ix.v1.common.lib.storage.storageClassName" (dict "rootCtx" $rootCtx "objectData" $vct "caller" "Volume Claim Templates") | trim) }}
|
||||||
storageClassName: {{ . }}
|
storageClassName: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
accessModes:
|
accessModes:
|
||||||
|
|||||||
Reference in New Issue
Block a user