From 9c08e68f57deb6f39125ed9decbfbbe6ce432379 Mon Sep 17 00:00:00 2001 From: rvandernoort Date: Thu, 12 Jun 2025 16:08:37 +0200 Subject: [PATCH] feat: Add extraVolume value to values and deployment for Helm Chart Signed-off-by: rvandernoort --- chart/mongodb-query-exporter/templates/deployment.yaml | 3 +++ chart/mongodb-query-exporter/values.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/chart/mongodb-query-exporter/templates/deployment.yaml b/chart/mongodb-query-exporter/templates/deployment.yaml index ff0d3fbb..62d28aaa 100644 --- a/chart/mongodb-query-exporter/templates/deployment.yaml +++ b/chart/mongodb-query-exporter/templates/deployment.yaml @@ -98,6 +98,9 @@ spec: secret: secretName: {{ .secretName }} {{- end }} + {{- if .Values.extraVolumes }} + {{- toYaml .Values.extraVolumes | nindent 6 }} + {{- end }} {{- with .Values.affinity }} affinity: {{- toYaml . | nindent 8 }} diff --git a/chart/mongodb-query-exporter/values.yaml b/chart/mongodb-query-exporter/values.yaml index 641b4320..1d8457bb 100644 --- a/chart/mongodb-query-exporter/values.yaml +++ b/chart/mongodb-query-exporter/values.yaml @@ -88,6 +88,9 @@ secretMounts: [] # Add additional containers (sidecars) extraContainers: +# Add additional volumes +extraVolumes: + podAnnotations: {} # prometheus.io/scrape: "true" # prometheus.io/port: "metrics"