zalando / postgres-operator

Postgres operator creates and manages PostgreSQL clusters running in Kubernetes
https://postgres-operator.readthedocs.io/
MIT License
4.37k stars 980 forks source link

Default Value ("/meta/credentials") for the additional_secret_mount_path is missing in version 1_13 #2779

Open emrahbecer opened 1 month ago

emrahbecer commented 1 month ago

Please, answer some short questions which should help us to understand your problem / question better?

Hello,

We're trying to upgrade our operator version to 1.13. In the previous versions there was a default value "additional_secret_mount_path" parameter which we were relying on. I guess most people rely on the default value too. aws_or_gcp: type: object properties: additional_secret_mount: type: string additional_secret_mount_path: type: string value: "/meta/credentials

In version 1.13 this default value seems to have been removed : https://github.com/zalando/postgres-operator/blob/v1.13.0/charts/postgres-operator/crds/operatorconfigurations.yaml#L473

If this change was not done on purpose, perhaps it will be better to put it back for those who rely on the default value. Otherwise the operator fails on pod creation.

For ex: Warning FailedCreate 10s (x14 over 55s) statefulset-controller create Pod hede-db-cluster-0 in StatefulSet hede-db-cluster failed error: Pod "hede-db-cluster-0" is invalid: [spec.containers[0].volumeMounts[2].mountPath: Required value, spec.containers[1].volumeMounts[1].mountPath: Required value]

Thank you. Emrah.