Merge pull request #99654 from ankeesler/exec-plugin-interactive-fix

exec credential provider: use stdin to detect user interaction
This commit is contained in:
Kubernetes Prow Robot 2021-03-03 14:41:45 -08:00 committed by GitHub
commit e2eb9f0005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,7 +198,7 @@ func newAuthenticator(c *cache, config *api.ExecConfig, cluster *clientauthentic
stdin: os.Stdin,
stderr: os.Stderr,
interactive: term.IsTerminal(int(os.Stdout.Fd())),
interactive: term.IsTerminal(int(os.Stdin.Fd())),
now: time.Now,
environ: os.Environ,