From 9bf26583e305e22ce76edc022f6f86c93017ae80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Serv=C3=A9n=20Mar=C3=ADn?= <lserven@gmail.com> Date: Thu, 8 May 2025 12:46:14 +0200 Subject: [PATCH] feat: add config option for storage (#2651) The commit introduces a configuration surface for specifying the storage that should be attached to Prometheus and Alertmanager servers. Signed-off-by: squat <lserven@gmail.com> --- jsonnet/kube-prometheus/components/alertmanager.libsonnet | 1 + jsonnet/kube-prometheus/components/prometheus.libsonnet | 1 + 2 files changed, 2 insertions(+) diff --git a/jsonnet/kube-prometheus/components/alertmanager.libsonnet b/jsonnet/kube-prometheus/components/alertmanager.libsonnet index 1faf0609..b23ce0c7 100644 --- a/jsonnet/kube-prometheus/components/alertmanager.libsonnet +++ b/jsonnet/kube-prometheus/components/alertmanager.libsonnet @@ -233,6 +233,7 @@ function(params) { runAsNonRoot: true, fsGroup: 2000, }, + [if std.objectHas(params, 'storage') then 'storage']: am._config.storage, }, }, } diff --git a/jsonnet/kube-prometheus/components/prometheus.libsonnet b/jsonnet/kube-prometheus/components/prometheus.libsonnet index 8aaad02a..05f86711 100644 --- a/jsonnet/kube-prometheus/components/prometheus.libsonnet +++ b/jsonnet/kube-prometheus/components/prometheus.libsonnet @@ -363,6 +363,7 @@ function(params) { fsGroup: 2000, }, [if std.objectHas(params, 'thanos') then 'thanos']: p._config.thanos, + [if std.objectHas(params, 'storage') then 'storage']: p._config.storage, }, }, -- GitLab