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

Configuration pdb_master_label_selector is not available in OperatorConfiguration CRD

Open peterfocko opened this issue 2 years ago • 7 comments

Hello, I tried the currently latest version of the operator v1.11.0, which I deploy as a Helm chart. In the release notes it was announced that the pdb_master_label_selector setting is now available: https://github.com/zalando/postgres-operator/pull/2364.

I wanted to use this setting, but the OperatorConfiguration CRD https://github.com/zalando/postgres-operator/blob/v1.11.0/charts/postgres-operator/crds/operatorconfigurations.yaml is currently missing the field to hold the pdb_master_label_selector configuration value.

I think the CRD should have an available attribute to hold the value of this setting, otherwise I have no option to configure it, as the ConfigMap configuration target is already deprecated.

Operator version: v1.11.0 Installation method: Helm chart

peterfocko avatar Mar 25 '24 14:03 peterfocko

I have exact the same problem and was actually just about to open an issue. Thank you! 👍

stromvirvel avatar Mar 25 '24 15:03 stromvirvel

I patched the CRD manually and the OperatorConfigurations was updated so that pdb_master_label_selector was set to false. I removed the PDB and restarted the operator, but the operator still adds the label selector.

crd.patch

stromvirvel avatar Mar 25 '24 15:03 stromvirvel

I patched the CRD manually and the OperatorConfigurations was updated so that pdb_master_label_selector was set to false. I removed the PDB and restarted the operator, but the operator still adds the label selector.

crd.patch

It worked for me, the pdb was recreated without the spilo-role: master

Hexcah avatar Mar 26 '24 07:03 Hexcah

@peterfocko I have updated the helm chart. Was an oversight that this options was missing in the helm chart (and example manifests)

FxKu avatar Mar 28 '24 11:03 FxKu

@FxKu thank you very much for the fix

peterfocko avatar Mar 28 '24 11:03 peterfocko

@FxKu I'm not sure how I can make use of that fix. Don't we need a new chart release to deploy the fix?

stromvirvel avatar Apr 08 '24 12:04 stromvirvel

Any News about a Release ?

mungo312 avatar May 02 '24 08:05 mungo312