-
- Downloads
Allow cloning clusters from the operator. (#90)
Allow cloning clusters from the operator. The changes add a new JSON node `clone` with possible values `cluster` and `timestamp`. `cluster` is mandatory, and setting a non-empty `timestamp` triggers wal-e point in time recovery. Spilo and Patroni do the whole heavy-lifting, the operator just defines certain variables and gathers some data about how to connect to the host to clone or the target S3 bucket. As a minor change, set the image pull policy to IfNotPresent instead of Always to simplify local testing. Change the default replication username to standby.
Showing
- manifests/configmap.yaml 1 addition, 1 deletionmanifests/configmap.yaml
- pkg/cluster/k8sres.go 61 additions, 5 deletionspkg/cluster/k8sres.go
- pkg/cluster/util.go 5 additions, 1 deletionpkg/cluster/util.go
- pkg/spec/postgresql.go 17 additions, 1 deletionpkg/spec/postgresql.go
- pkg/spec/postgresql_test.go 30 additions, 4 deletionspkg/spec/postgresql_test.go
- pkg/util/config/config.go 1 addition, 1 deletionpkg/util/config/config.go
Loading
Please sign in to comment