-
Notifications
You must be signed in to change notification settings - Fork 294
Description
The plugin fails for a specific configuration (maybe a specific template function?) that is used in the bitnami/common chart.
It specifically leads to these bitnami charts displaying an error message on diff that certain credentials (e.g. for bitnami/mysql and bitnami/postgresql) need to be specified when upgrading, although they are set correctly.
This is evidenced by helm upgrade
working with the same configuration without any issues (same goes for helmfile).
This was discovered in bitnami/charts#15073, but also mentioned by me in bitnami/charts#15175.
Specifically, the configuration mentioned in bitnami/charts#15175 (comment) shows the error mentioned there.
Tracing this down to its source, it seems to be happening when the following line is hit: https://github.com/bitnami/charts/blob/d8211ca955bae990f4b1af121419545cb90309eb/bitnami/common/templates/_secrets.tpl#L93 (see bitnami/charts#15175 (comment)).
I deduced this from the error message in line 111 being triggered: https://github.com/bitnami/charts/blob/d8211ca955bae990f4b1af121419545cb90309eb/bitnami/common/templates/_secrets.tpl#L111, which needs the template to fall into the else
clause in https://github.com/bitnami/charts/blob/d8211ca955bae990f4b1af121419545cb90309eb/bitnami/common/templates/_secrets.tpl#L102.
This should not happen since https://github.com/bitnami/charts/blob/d8211ca955bae990f4b1af121419545cb90309eb/bitnami/common/templates/_secrets.tpl#L93 resolves to a secret being set and therefore the if
in https://github.com/bitnami/charts/blob/d8211ca955bae990f4b1af121419545cb90309eb/bitnami/common/templates/_secrets.tpl#L94 should be entered.
I'm aware that this is a very unspecific report, please let me know if I should provide an easier reproduction scenario or similar.