Skip to content

Commit

Permalink
fix: exec authentication requires interactiveMode
Browse files Browse the repository at this point in the history
  • Loading branch information
valorl authored and alekc committed Dec 3, 2022
1 parent 6faa29f commit 035b63f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kubernetes/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}))
Expand Down

0 comments on commit 035b63f

Please sign in to comment.