zalando / zalando/postgres-operator

Is there possible to support watch multiple namespaces

Open
#1,839 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement question
Dominant language
Go
Stars
5.2k
Forks
1.1k
Avg merge
2d 16h
Merged PRs (30d)
3

Description

Please, answer some short questions which should help us to understand your problem / question better?

  • Which image of the operator are you using? registry.opensource.zalan.do/acid/postgres-operator:v1.7.1
  • Where do you run it - cloud or metal? Kubernetes or OpenShift? OpenShift 4.7/4.9
  • Are you running Postgres Operator in production? yes
  • Type of issue? question

I've run postgres-operator with watched_namespace: '*', and I want to change watched_namespace value to multiple namespaces like watched_namespace: 'rds1,rds2'.
After testing, I found that this method is not feasible. It seems that the current operator can only support * or single namespace.
So I would like to ask if there is any way for the operator to support listening to multiple namespaces at the same time?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the operator's watched_namespace configuration and the namespace-watching setup for Kubernetes and OpenShift. Check how wildcard and single-namespace values are handled, then determine the expected behavior for multiple namespaces and verify it with focused operator tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes, postgresql
Domain
databases, devops, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.