diff --git a/jsonnet/kube-prometheus/components/prometheus.libsonnet b/jsonnet/kube-prometheus/components/prometheus.libsonnet
index cf048c09362b851261785e92a026d778209d294e..aef2a851f4ae00c55229dd88adc952beb1853d53 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 10f74df4046301db55c2b8dab0cf982d864d9aa1..f1f8ef2f2999cc0ee466d44bc7049d20ec4edb75 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