postgres-operator icon indicating copy to clipboard operation
postgres-operator copied to clipboard

postgres-operator incompatible with older deployments using non-v4 patroni

Open jansmets opened this issue 10 months ago • 0 comments

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!

jansmets avatar Mar 24 '25 08:03 jansmets