diff --git a/jsonnet/kube-prometheus/components/prometheus.libsonnet b/jsonnet/kube-prometheus/components/prometheus.libsonnet index cf048c09..aef2a851 100644 --- a/jsonnet/kube-prometheus/components/prometheus.libsonnet +++ b/jsonnet/kube-prometheus/components/prometheus.libsonnet @@ -274,7 +274,7 @@ function(params) { runAsNonRoot: true, fsGroup: 2000, }, - thanos: p.config.thanos, + [if std.objectHas(params, 'thanos') then 'thanos']: p.config.thanos, }, }, diff --git a/manifests/prometheus-prometheus.yaml b/manifests/prometheus-prometheus.yaml index 10f74df4..f1f8ef2f 100644 --- a/manifests/prometheus-prometheus.yaml +++ b/manifests/prometheus-prometheus.yaml @@ -44,5 +44,4 @@ spec: serviceAccountName: prometheus-k8s serviceMonitorNamespaceSelector: {} serviceMonitorSelector: {} - thanos: {} version: 2.24.0