From 933fce1a729d5eaa52d41704fc4a7e8427fff3f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20de=20Saint=20Martin?= Date: Wed, 17 Apr 2024 22:01:54 +0200 Subject: [PATCH] [prometheus-systemd-exporter]: fix extraArgs indentation, document it in values (#4456) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cédric de Saint Martin --- charts/prometheus-systemd-exporter/Chart.yaml | 2 +- charts/prometheus-systemd-exporter/templates/daemonset.yaml | 6 +++--- charts/prometheus-systemd-exporter/values.yaml | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/charts/prometheus-systemd-exporter/Chart.yaml b/charts/prometheus-systemd-exporter/Chart.yaml index 1506dc5fc3c4..b3d6a18fc84f 100644 --- a/charts/prometheus-systemd-exporter/Chart.yaml +++ b/charts/prometheus-systemd-exporter/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: prometheus-systemd-exporter description: A Helm chart for prometheus systemd-exporter type: application -version: 0.2.0 +version: 0.2.1 appVersion: "0.6.0" home: https://github.com/prometheus-community/systemd_exporter sources: diff --git a/charts/prometheus-systemd-exporter/templates/daemonset.yaml b/charts/prometheus-systemd-exporter/templates/daemonset.yaml index c85b0e3c2cc0..8d0bd1eb94bc 100644 --- a/charts/prometheus-systemd-exporter/templates/daemonset.yaml +++ b/charts/prometheus-systemd-exporter/templates/daemonset.yaml @@ -52,9 +52,9 @@ spec: args: - --log.level=info - --systemd.collector.unit-include=kubelet.service|docker.service - {{- with .Values.extraArgs }} - {{- toYaml . | nindent 12 }} - {{- end }} + {{- with .Values.extraArgs }} + {{- toYaml . | nindent 10 }} + {{- end }} {{- with .Values.containerSecurityContext }} securityContext: {{- toYaml . | nindent 12 }} diff --git a/charts/prometheus-systemd-exporter/values.yaml b/charts/prometheus-systemd-exporter/values.yaml index c6e4b4b005a7..074374838d75 100644 --- a/charts/prometheus-systemd-exporter/values.yaml +++ b/charts/prometheus-systemd-exporter/values.yaml @@ -50,6 +50,10 @@ env: {} ## env: ## VARIABLE: value +# extraArgs allows to pass command line arguments, as described on https://github.com/prometheus-community/systemd_exporter?tab=readme-ov-file#configuration +extraArgs: [] +# - --systemd.collector.enable-resolved + prometheus: monitor: enabled: false