mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-07 04:56:28 -03:00
fix VCT name rendering
This commit is contained in:
@@ -15,4 +15,4 @@ maintainers:
|
||||
name: common
|
||||
sources: null
|
||||
type: library
|
||||
version: 10.0.4
|
||||
version: 10.0.5
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
{{- if eq .Values.controller.type "statefulset" }}
|
||||
{{- range $index, $vct := .Values.volumeClaimTemplates }}
|
||||
- mountPath: {{ $vct.mountPath }}
|
||||
name: {{ $vct.name }}
|
||||
name: {{ tpl ( toString $index ) $ }}
|
||||
{{- if $vct.subPath }}
|
||||
subPath: {{ $vct.subPath }}
|
||||
{{- end }}
|
||||
|
||||
@@ -4,7 +4,7 @@ Volumes included by the controller.
|
||||
{{- define "tc.common.controller.volumes" -}}
|
||||
{{- range $index, $persistence := .Values.persistence }}
|
||||
{{- if $persistence.enabled }}
|
||||
- name: {{ tpl $index $ }}
|
||||
- name: {{ tpl ( toString $index ) $ }}
|
||||
{{- if eq (default "pvc" $persistence.type) "pvc" }}
|
||||
{{- $pvcName := (include "tc.common.names.fullname" $) -}}
|
||||
{{- if $persistence.existingClaim }}
|
||||
|
||||
@@ -49,7 +49,7 @@ spec:
|
||||
volumeClaimTemplates:
|
||||
{{- range $index, $vct := .Values.volumeClaimTemplates }}
|
||||
- metadata:
|
||||
name: {{ $vct.name }}
|
||||
name: {{ tpl ( toString $index ) $ }}
|
||||
spec:
|
||||
accessModes:
|
||||
- {{ tpl ( $vct.accessMode | default "ReadWriteOnce" ) $ | quote }}
|
||||
|
||||
Reference in New Issue
Block a user