diff --git a/library/common/templates/lib/container/_volumeMounts.tpl b/library/common/templates/lib/container/_volumeMounts.tpl index f44e5761..84b3cb6d 100644 --- a/library/common/templates/lib/container/_volumeMounts.tpl +++ b/library/common/templates/lib/container/_volumeMounts.tpl @@ -75,7 +75,7 @@ objectData: The object data to be used to render the container. {{/* Initialize from the default values */}} {{- $volMount := dict -}} - {{- if eq $objectData.podType "StatefulSet" -}} + {{- if eq $persistenceValues.type "vct" -}} {{- $fullname := include "tc.v1.common.lib.chart.names.fullname" $rootCtx -}} {{- $persistenceName = printf "%s-%s" $fullname $persistenceName -}} {{- end -}}