diff --git a/CHANGELOG.md b/CHANGELOG.md index 625e947b5d..3da5ebbef8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.4.1 (Unreleased) + +HOTFIX: +* Fix exec plugin interactive mode regression (#798) + ## 2.4.0 (November 08, 2021) * Upgrade helm to 3.7.1 diff --git a/helm/structure_kubeconfig.go b/helm/structure_kubeconfig.go index 29bf3b50f6..ad0a68af7a 100644 --- a/helm/structure_kubeconfig.go +++ b/helm/structure_kubeconfig.go @@ -163,6 +163,7 @@ func newKubeConfig(configData *schema.ResourceData, namespace *string) (*KubeCon if v, ok := k8sGetOk(configData, "exec"); ok { exec := &clientcmdapi.ExecConfig{} if spec, ok := v.([]interface{})[0].(map[string]interface{}); ok { + exec.InteractiveMode = clientcmdapi.IfAvailableExecInteractiveMode exec.APIVersion = spec["api_version"].(string) exec.Command = spec["command"].(string) exec.Args = expandStringSlice(spec["args"].([]interface{}))