mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-21 12:50:02 +02:00
Allow secrets to be excluded from release template inheritance (#1189)
* Allow secrets to be excluded from inheritance, small docs update Signed-off-by: Alex Vorona <alex@vorona.com.ua> * Fix typo in docs Signed-off-by: Alex Vorona <alex@vorona.com.ua> --------- Signed-off-by: Alex Vorona <alex@vorona.com.ua>
This commit is contained in:
@@ -199,8 +199,10 @@ func (st *HelmState) releaseWithInheritedTemplate(r *ReleaseSpec, inheritancePat
|
||||
src.SetValuesTemplate = nil
|
||||
case "set":
|
||||
src.SetValues = nil
|
||||
case "secrets":
|
||||
src.Secrets = nil
|
||||
default:
|
||||
return nil, fmt.Errorf("%q is not allowed under `inherit`. Allowed values are \"set\", \"setTemplate\", \"values\", \"valuesTemplate\", and \"labels\"", k)
|
||||
return nil, fmt.Errorf("%q is not allowed under `inherit`. Allowed values are \"set\", \"setTemplate\", \"values\", \"valuesTemplate\", \"secrets\", and \"labels\"", k)
|
||||
}
|
||||
|
||||
st.logger.Debugf("excluded field %q when inheriting template %q to release %q", k, templateName, r.Name)
|
||||
|
||||
Reference in New Issue
Block a user