diff --git a/test/podFailover/workload/chart/templates/workload.yaml b/test/podFailover/workload/chart/templates/workload.yaml index 7e9e0b3724..48a1e223be 100644 --- a/test/podFailover/workload/chart/templates/workload.yaml +++ b/test/podFailover/workload/chart/templates/workload.yaml @@ -47,7 +47,7 @@ stringData: AZURE_TENANT_ID: {{ .Values.azureTenantId }} --- {{- end }} -{{- if .Values.storageClass }} +{{- if and .Values.storageClass .Values.storageClass.create }} apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: