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{}))