cloudnative-pg / charts

CloudNativePG Helm Charts
Apache License 2.0
174 stars 82 forks source link

fix init db to actually provision with a secret #286

Closed 8ball030 closed 4 months ago

8ball030 commented 4 months ago

helm.go:84: [debug] admission webhook "mcluster.cnpg.io" denied the request: json: cannot unmarshal string into Go struct field BootstrapInitDB.spec.bootstrap.initdb.secret of type v1.LocalObjectReference

The defazult values fail to provision,

In order to get the secret to work, you have to add the name key,.

8ball030 commented 4 months ago

I believe theere additional issues in in that when you try to use this configuration option, the new database is not correctly configured to use the secret specified.

Any guidance on this would be appreciated and i can update the pr to provide more clarity to others.

itay-grudev commented 4 months ago

Can you share the values you are experiencing an issue with?

itay-grudev commented 4 months ago

Closing in favor of: #239