mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-18 17:42:42 +02:00
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:
co-authored by
Andrey Tuzhilin
parent
53c6d2f988
commit
b1b7831a90
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user