From ce0d3a3d7d2dbd5455bdab7a385bda6eeffa0f03 Mon Sep 17 00:00:00 2001 From: Patrick Kolze Date: Mon, 13 Jan 2020 08:11:37 +0100 Subject: [PATCH] [stable/prometheus-pushgateway] Fix persistence support (#20048) * Add persistence support Signed-off-by: Patrick Kolze * fix linting issue Signed-off-by: Patrick Kolze * Update Chart version Signed-off-by: Patrick Kolze * Avoid breaking existing behaviour Signed-off-by: Patrick Kolze * [stable/prometheus-pushgateway] Bump version (#16040) Signed-off-by: Patrick Kolze * [stable/prometheus-pushgateway] Fix persistence support Signed-off-by: Patrick Kolze * Change back default persistence path Signed-off-by: Patrick Kolze --- stable/prometheus-pushgateway/Chart.yaml | 2 +- stable/prometheus-pushgateway/templates/deployment.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/stable/prometheus-pushgateway/Chart.yaml b/stable/prometheus-pushgateway/Chart.yaml index 4828d176fb..44a08c7014 100644 --- a/stable/prometheus-pushgateway/Chart.yaml +++ b/stable/prometheus-pushgateway/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "1.0.1" description: A Helm chart for prometheus pushgateway name: prometheus-pushgateway -version: 1.2.12 +version: 1.2.13 home: https://github.com/prometheus/pushgateway sources: - https://github.com/prometheus/pushgateway diff --git a/stable/prometheus-pushgateway/templates/deployment.yaml b/stable/prometheus-pushgateway/templates/deployment.yaml index 3a8b9e7351..acb9de69ed 100644 --- a/stable/prometheus-pushgateway/templates/deployment.yaml +++ b/stable/prometheus-pushgateway/templates/deployment.yaml @@ -49,6 +49,12 @@ spec: timeoutSeconds: 10 resources: {{ toYaml .Values.resources | indent 12 }} + {{- if .Values.persistentVolume.enabled }} + volumeMounts: + - name: storage-volume + mountPath: "{{ .Values.persistentVolume.mountPath }}" + subPath: "{{ .Values.persistentVolume.subPath }}" + {{- end }} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }}