Skip to content

Sync mode reloaded #572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 46 commits into from
Jun 28, 2024
Merged

Sync mode reloaded #572

merged 46 commits into from
Jun 28, 2024

Conversation

eberlep
Copy link
Collaborator

@eberlep eberlep commented Jun 26, 2024

Based on #423 but modified to only set the parameters required for sync replication. The rest should be handled by the postgres operator.

eberlep added 30 commits August 31, 2022 16:05
@eberlep eberlep changed the base branch from main to major_update June 27, 2024 10:40
@eberlep eberlep marked this pull request as ready for review June 28, 2024 07:31
@eberlep eberlep merged commit effa9e4 into major_update Jun 28, 2024
@eberlep eberlep deleted the sync_mode_reloaded branch June 28, 2024 07:42
eberlep added a commit that referenced this pull request Jun 28, 2024
* Bump controller-runtime

* Fix metricsserver BindAddress

* ...

* Use same keys for logging in both reconcilers

* Use common ns key in operatormanager as well

* Add keys in lbmanager as well

* Use both keys

* Revert "Use both keys"

This reverts commit d66c243.

* Pass along logger

* key naming

* Logging

* Logging

* Logging

* Logging

* Logging

* Logging

* Logging

* Logging

* Logging

* Set RequeueAfter

* Logging

* Logging

* Logging

* Logging

* Logging

* Add delay for requeueing

* Add privileged label for initial development

* operator-update step 1:
bump version

* operator update step 2:
make svc-postgres-operator-yaml

* operator update step 3:
check config

* operator update:
update securityContext

* Update YAML

* Update YAML

* Update securityContext of initDBJob

* Add TODO

* Add securityContext to etcd

* Add runAsUser

* Disable readonly filesystem

* Update backup-restore-sidecar (and etcd)

* Update etcd configMap

* Revert "Set RequeueAfter"

This reverts commit bdd9df0.

* #88 Use default serviceAccount

* Update existing namespaces with new label

* Rename, logging and cleanup

* (Temporarily) removing call to patroni for testing

* Update to latest v0.16.x bugfix release

* Add option for patroni failsafe mode (for e.g. when using K8s as DCS)

* Change name again (fix for old cert-manager versions)

* Revert "Change name again (fix for old cert-manager versions)"

This reverts commit 9a5e7d6.

* Set to nil when not needed (so it will actually be removed from the CR)

* Sync mode reloaded (#572)

* Check patronic config and only update if neccessary

* Refactoring

* ...

* Refactoring

* Fix linter warnings

* Fix linter warning

* Delay requeue by 10 secs

* Check before updating standby configs as well

* Improve logging

* Improve logging

* Improve logging

* Fix check for SynchronousNodesAdditional

* Fix comparison, improve logging

* Additional nil check...

* Test different execution order for primaries and standbies

* Revert "Test different execution order for primaries and standbies"

This reverts commit 3f57b1c.

* Logging

* Refactoring

* Make requeue duration configurable

* Rename variable

* Add additional check (but only log the result for now)

* Only requeue when REST call was successful

* Fix linter errors

* Set to nil when not needed (so it will actually be removed from the CR)

* Only set the params required for sync replication and leave the rest to the postgres operator

* Remove unneccessary code

* logging

* Remove unused code

* Fix logic

* Update logic

* Revert "Remove unused code"

This reverts commit 7e525ec.

* Revert "Remove unneccessary code"

This reverts commit 00cc28f.

* Update previously reverted code

* Set all values when paching

* Logging

* Back to status quo: set the whole config

* typo

* Logging

* Remove TODOs after review

* Simplify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant