From de8397fcba7125f0d8043cb38839a19332c80be6 Mon Sep 17 00:00:00 2001 From: Stefan Krenz Date: Mon, 13 Nov 2023 14:41:28 +0100 Subject: [PATCH] fix: Update volume names --- charts/prometheus-exporter/templates/_helpers.tpl | 6 +++--- charts/prometheus-exporter/templates/deployment.yaml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/prometheus-exporter/templates/_helpers.tpl b/charts/prometheus-exporter/templates/_helpers.tpl index 3e1a497..6daef21 100644 --- a/charts/prometheus-exporter/templates/_helpers.tpl +++ b/charts/prometheus-exporter/templates/_helpers.tpl @@ -82,7 +82,7 @@ Create the name of the service account to use resources: {{- toYaml .Values.resources | nindent 4 }} volumeMounts: - - name: metric-volume + - name: {{ include "prometheus-exporter.fullname" . }}-metrics-volume mountPath: /app/var/metrics/ {{- with .Values.volumeMounts }} {{- toYaml . | nindent 4 }} @@ -111,10 +111,10 @@ Create the name of the service account to use resources: {{- toYaml .Values.resources | nindent 4 }} volumeMounts: - - name: nginx-config-volume + - name: {{ include "prometheus-exporter.fullname" . }}-nginx-config-volume mountPath: /etc/nginx/conf.d/default.conf subPath: nginx.conf - - name: nginx-config-volume + - name: {{ include "prometheus-exporter.fullname" . }}-nginx-config-volume mountPath: /etc/nginx/fastcgi_params subPath: fastcgi_params {{- with .Values.volumeMounts }} diff --git a/charts/prometheus-exporter/templates/deployment.yaml b/charts/prometheus-exporter/templates/deployment.yaml index 3041cf4..4400ed1 100644 --- a/charts/prometheus-exporter/templates/deployment.yaml +++ b/charts/prometheus-exporter/templates/deployment.yaml @@ -31,10 +31,10 @@ spec: containers: {{- include "prometheus-exporter.containers" . | nindent 8 }} volumes: - - name: nginx-config-volume + - name: {{ include "prometheus-exporter.fullname" . }}-nginx-config-volume configMap: name: {{ include "prometheus-exporter.fullname" . }}-nginx-config - - name: metrics-volume + - name: {{ include "prometheus-exporter.fullname" . }}-metrics-volume emptyDir: {} {{- with .Values.volumes }} {{- toYaml . | nindent 8 }}