diff --git a/cost-analyzer/charts/prometheus/templates/pushgateway-pvc.yaml b/cost-analyzer/charts/prometheus/templates/pushgateway-pvc.yaml index ba16a37af..e92ef615e 100755 --- a/cost-analyzer/charts/prometheus/templates/pushgateway-pvc.yaml +++ b/cost-analyzer/charts/prometheus/templates/pushgateway-pvc.yaml @@ -1,3 +1,4 @@ +{{- if .Values.pushgateway.enabled -}} {{- if .Values.pushgateway.persistentVolume.enabled -}} {{- if not .Values.pushgateway.persistentVolume.existingClaim -}} apiVersion: v1 @@ -28,3 +29,4 @@ spec: storage: "{{ .Values.pushgateway.persistentVolume.size }}" {{- end -}} {{- end -}} +{{- end -}} \ No newline at end of file