Skip to content

Commit 47ce970

Browse files
authored
fix(auth): allow interactive auth with k8s block (#157)
#151
1 parent f819c37 commit 47ce970

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

argocd/provider.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ func initApiClient(d *schema.ResourceData) (
262262
if v, ok := k8sGetOk(d, "exec"); ok {
263263
exec := &clientcmdapi.ExecConfig{}
264264
if spec, ok := v.([]interface{})[0].(map[string]interface{}); ok {
265+
exec.InteractiveMode = clientcmdapi.IfAvailableExecInteractiveMode
265266
exec.APIVersion = spec["api_version"].(string)
266267
exec.Command = spec["command"].(string)
267268
exec.Args = expandStringSlice(spec["args"].([]interface{}))

0 commit comments

Comments
 (0)