From 035b63fba2bf8636c97f86d982a7a0601a5069f1 Mon Sep 17 00:00:00 2001 From: valorl <11498571+valorl@users.noreply.github.com> Date: Fri, 2 Dec 2022 15:49:19 +0100 Subject: [PATCH] fix: exec authentication requires interactiveMode --- kubernetes/provider.go | 1 + 1 file changed, 1 insertion(+) diff --git a/kubernetes/provider.go b/kubernetes/provider.go index d8f63794..945335ad 100644 --- a/kubernetes/provider.go +++ b/kubernetes/provider.go @@ -282,6 +282,7 @@ func initializeConfiguration(d *schema.ResourceData) (*restclient.Config, error) if v, ok := d.GetOk("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{}))