zalando / zalando/postgres-operator
Operator doesn't create prepared databases after standby replication from standalone source
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 5.2k
- Forks
- 1.1k
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 3
Description
Hello,
I’ve encountered an interesting situation where I "hacked" (is it?) the operator to use the standby feature for replicating a standalone PostgreSQL database located on a remote server into my Kubernetes cluster. The source database's tables were in the postgres database.
The replication worked so well that the operator didn’t perform some expected tasks, specifically:
- It didn’t create the database I specified in the
preparedDatabase. - It didn’t create any users, even though
defaultUsers: truewas set.
Now that my data was "backed up" within my cluster. Does anybody know if there a way to make the operator to actually create these default users and database?
I would appreciate any guidance or clarification on how the operator handles such scenarios. Let me know if you need more details about my setup.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how standby replication from a remote standalone PostgreSQL source handles the preparedDatabase and defaultUsers settings. Compare the resulting cluster state with the requested configuration, and determine whether creating the database and users is expected after replication; capture the behavior in a focused test or documentation update.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, kubernetes, postgresql
- Domain
- databases, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100