fix: helmDefaults.kubeContext ignored in helm diff of helmfile apply (#682)

The root cause of this bug was due to that `--kube-context` and `kubeContext` had been treated specifically in code. So on the way I have made it consistent with other per-release settings - by adding `kubeContext` for each release and treating `helmDefaults.kubeContext` as just the default value for per-release setting.

Fixes #674
This commit is contained in:
KUOKA Yusuke
2019-06-12 16:49:19 +09:00
committed by GitHub
parent 1da3488599
commit 2e38f42a40
6 changed files with 65 additions and 19 deletions
-4
View File
@@ -82,10 +82,6 @@ func GetArgs(args string, state *state.HelmState) []string {
}
}
if state.HelmDefaults.KubeContext != "" {
argsMap.SetArg("--kube-context", state.HelmDefaults.KubeContext, false)
}
var argArr []string
for _, flag := range argsMap.flags {