Skip to content

chore(cloudnative-pg): Enable Namespaced-Based Deployment for CNPG Operator#833

Open
Charbel-Metrot wants to merge 1 commit intocloudnative-pg:mainfrom
Charbel-Metrot:patch-1
Open

chore(cloudnative-pg): Enable Namespaced-Based Deployment for CNPG Operator#833
Charbel-Metrot wants to merge 1 commit intocloudnative-pg:mainfrom
Charbel-Metrot:patch-1

Conversation

@Charbel-Metrot
Copy link

We attempted to deploy the CNPG Operator in namespaced mode rather than as a cluster-wide deployment. During testing, we discovered that the value provided to the WATCH_NAMESPACE flag was not being picked up by the operator.

This change ensures that the CNPG Operator correctly reads the WATCH_NAMESPACE configuration so it can monitor the intended namespaces. Multiple namespaces can be specified by listing them as a comma-separated value.

Example configuration:

cloudnative-pg:
enabled: true
config:
clusterWide: false
namespaced: true
data:
WATCH_NAMESPACE: test

For multiple namespaces:
WATCH_NAMESPACE: namespace-1,namespace-2,namespace-3

Signed-off-by: Charbel-Metrot <141778176+Charbel-Metrot@users.noreply.github.com>
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. chart( operator ) Related to the operator (cloudnative-pg) chart labels Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chart( operator ) Related to the operator (cloudnative-pg) chart size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant