From 8f79c24010ecb819ecc6ac3467203f3f631f4d77 Mon Sep 17 00:00:00 2001 From: Calvin Wang Date: Mon, 4 Jan 2021 18:43:36 -0800 Subject: [PATCH] add check for pushgateway enabled in pushgateway-pvc template yaml --- cost-analyzer/charts/prometheus/templates/pushgateway-pvc.yaml | 2 ++ 1 file changed, 2 insertions(+) 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