zalando / postgres-operator

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

fix: add secret only when not in secret file #2732

Closed nickmansrob closed 3 months ago

nickmansrob commented 3 months ago

This PR fixes issue #2716 by adding logic to make sure a ENV variable which is specified in a Secret is not added as an empty ENV variable too, resulting in a duplicate key (one from the Secret, one as the default value in OperatorConfiguration which is "").

FxKu commented 3 months ago

:+1:

sdudoladov commented 3 months ago

:+1:

FxKu commented 3 months ago

Thanks @nickmansrob for your contribution!