postgres-operator
postgres-operator copied to clipboard
postgres-operator incompatible with older deployments using non-v4 patroni
I'm unable to use the latest release of the operator (5.7.4) with any older deployments (eg, crunchy-postgres:ubi8-13.10-0)
level=debug msg="changed primary" ... stderr="Usage: patronictl switchover [OPTIONS] [CLUSTER_NAME]\nTry 'patronictl switchover --help' for help.\n\nError: No such option: --primary\n" stdout= version=5.7.4-0
This commit made the change to use --primary
https://github.com/CrunchyData/postgres-operator/commit/744f7086717629cd6fd9c0efa095275806bcaa93
I had to revert back to 5.7.2
Please consider checking the patroni version before executing the command - or fall back to the previous command line syntax/options in case the first (v4 syntax) fails.
Thanks!