Skip to content

Commit 340137c

Browse files
feat: enable watch-referenced-objects-in-all-namespaces in Prometheus operator (#945)
This commit enables the `--watch-referenced-objects-in-all-namespaces` flag in the Prometheus operator deployment to ensure that the operator reconciles configurations when a secret/configmap referenced by a custom resource gets an update. Upstream issue: https://github.com/prometheus-operator/prometheus-operator/issue/6018 Signed-off-by: Simon Pasquier <[email protected]>
1 parent 46ccb54 commit 340137c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

bundle/manifests/observability-operator.clusterserviceversion.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ metadata:
4242
categories: Monitoring
4343
certified: "false"
4444
containerImage: observability-operator:1.3.0
45-
createdAt: "2025-11-26T07:19:50Z"
45+
createdAt: "2025-11-27T18:47:09Z"
4646
description: A Go based Kubernetes operator to setup and manage highly available
4747
Monitoring Stack using Prometheus, Alertmanager and Thanos Querier.
4848
operatorframework.io/cluster-monitoring: "true"
@@ -864,6 +864,7 @@ spec:
864864
- --prometheus-instance-selector=app.kubernetes.io/managed-by=observability-operator
865865
- --alertmanager-instance-selector=app.kubernetes.io/managed-by=observability-operator
866866
- --thanos-ruler-instance-selector=app.kubernetes.io/managed-by=observability-operator
867+
- --watch-referenced-objects-in-all-namespaces=true
867868
env:
868869
- name: GOGC
869870
value: "30"

deploy/dependencies/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ patches:
7676
- --prometheus-instance-selector=app.kubernetes.io/managed-by=observability-operator
7777
- --alertmanager-instance-selector=app.kubernetes.io/managed-by=observability-operator
7878
- --thanos-ruler-instance-selector=app.kubernetes.io/managed-by=observability-operator
79+
- --watch-referenced-objects-in-all-namespaces=true
7980
resources:
8081
requests:
8182
cpu: 5m

0 commit comments

Comments
 (0)