Comments (3)
There are different ways could be considered and want to hear more voice
We do support application database setup during initdb in this way
bootstrap:
initdb:
database: app
owner: app
secret:
name: existed-secret-name
we want do similar for recovery and pg_basebackup
#1, one way we can choose is to have database
owner
secret
added redundantly under recovery
, pg_basebackup
, we also want a new flag to indicates whether user want to setup
the application database after restore.
bootstrap:
recovery:
database: app
owner: app
bootstrap:
pg_basebackup:
database: app
owner: app
#2, Exract the application database information into new struct, databaseInfo
, and change the way initdb
reference application db.
The benifit of this way is we reduce the redundant, and it is easy for user to decided setup a application databse or not after recovery (by specific databaseInfo or not )
The concern of this way is , we changed the way to specific appllication database for initDB, which could be a problem for existing clusters.
---
bootstrap:
initdb:
databaseinfo:
name: app
owner: app
secret:
name: existed-secret-name
---
bootstrap:
recovery:
databaseinfo:
name: app
owner: app
secret:
name: existed-secret-name
---
bootstrap:
pg_basebackup:
databaseinfo:
name: app
owner: app
secret:
name: existed-secret-name
from cloudnative-pg.
Per the considering backward-compability and discussion, I am going to modify the pr using first solution.
from cloudnative-pg.
Use solution #1 , move code along with e2e test case into PR
from cloudnative-pg.
Related Issues (20)
- [Feature]: Expose additional command args for barman-cloud-wal-archive
- Backups getting stucked on walArchivingFailing phase HOT 1
- [Bug]: test
- [Feature]: Disperse Primary Pods equally across Kubernetes Compute Nodes HOT 1
- CRDs to access CNPG from vCluster [Feature]:
- [Bug]: Release notes for 1.23 miss user defined replication slots sync
- [Feature]: Give the possibility to automatically clean pgbench jobs - ttlSecondsAfterFinished option
- [Docs]: Non sequitur in image tag requirements
- [Bug]: The CustomResourceDefinition "poolers.postgresql.cnpg.io" is invalid: metadata.annotations: Too long: must have at most 262144 bytes HOT 3
- [Bug]: use full name for replaces value in csv file
- Can cloudnative-pg support longhorn to make data sync instead of pg sync data itself in pg cluster, to support infinity disk capacity
- setup creadentials for preflight check in ci workflow
- [Bug]: Logger PGAudit not working, postgres logger is used instead HOT 2
- [Bug]: Kubectl Plugin displays default Operator Image version, when using ImageCatalog in Cluster CR
- [Bug]: CNPG 1.23 - cannot create Cluster auxiliary objects: expected pointer, but got invalid HOT 2
- [Bug]: Replica starts recovery from backup that is outside of retention period.
- [Bug]: Node restarts may render cluster broken HOT 1
- [Docs]: development env setup instructions don't support Apple Silicon
- [Docs]: Release notes for 1.23.1
- [Feature]: Add Container Lifecycle Hooks (PostStart,PreStop) for containers in the Cluster CRD
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudnative-pg.