feat: make --kube-context override helmDefaults (#1673)

This would allow cli flag `--kube-context` to override value in helmDefaults allowing to use different values in local development and CI context.

Co-authored-by: Andrey Tuzhilin <andrey@3adigital.ru>
This commit is contained in:
astorath
2021-03-30 16:53:19 +09:00
committed by GitHub
co-authored by Andrey Tuzhilin
parent 53c6d2f988
commit b1b7831a90
-3
View File
@@ -72,9 +72,6 @@ func (ld *desiredStateLoader) Load(f string, opts LoadOpts) (*state.HelmState, e
}
if ld.overrideKubeContext != "" {
if st.HelmDefaults.KubeContext != "" {
return nil, errors.New("err: Cannot use option --kube-context and set attribute helmDefaults.kubeContext.")
}
st.HelmDefaults.KubeContext = ld.overrideKubeContext
}