From 5ab88c380309c77916b09c9b86e4d5f651d018d7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robin=20Bj=C3=B6rklin?= <robin.bjorklin@gmail.com>
Date: Mon, 9 Sep 2024 16:06:02 -0700
Subject: [PATCH] feat: allow configuring smartctl's powermode check
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Requires: prometheus-community/smartctl_exporter/pull/242

Signed-off-by: Robin Björklin <robin.bjorklin@gmail.com>
---
 charts/prometheus-smartctl-exporter/templates/daemonset.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/charts/prometheus-smartctl-exporter/templates/daemonset.yaml b/charts/prometheus-smartctl-exporter/templates/daemonset.yaml
index dc4c1400cae5..e5d4ebc2dc48 100644
--- a/charts/prometheus-smartctl-exporter/templates/daemonset.yaml
+++ b/charts/prometheus-smartctl-exporter/templates/daemonset.yaml
@@ -40,6 +40,7 @@ spec:
         imagePullPolicy: {{ $global.Values.image.pullPolicy }}
         args:
         - '--smartctl.path={{ $config.smartctl_location }}'
+        - '--smartctl.powermode-check={{ $config.smartctl_powermode_check | default "standby" }}'
         - '--smartctl.interval={{ $config.collect_not_more_than_period }}'
 {{ range $config.devices }}
         - '--smartctl.device={{ . }}'