Revert "Add interactive configuration to exec provider."

This reverts commit e0dfc6b0da.
This commit is contained in:
Brendan Burns 2022-06-16 22:14:43 +00:00 committed by Yu Liao
parent 59ee3654bc
commit 1ea21daaac

View File

@ -57,12 +57,11 @@ class ExecProvider(object):
self.cwd = cwd or None
def run(self, previous_response=None):
is_interactive = sys.stdout.isatty()
kubernetes_exec_info = {
'apiVersion': self.api_version,
'kind': 'ExecCredential',
'spec': {
'interactive': is_interactive
'interactive': sys.stdout.isatty()
}
}
if previous_response:
@ -71,8 +70,7 @@ class ExecProvider(object):
process = subprocess.Popen(
self.args,
stdout=subprocess.PIPE,
stderr=sys.stderr when is_interactive else subprocess.PIPE,
stdin=sys.stdin when is_interactive else None,
stderr=subprocess.PIPE,
cwd=self.cwd,
env=self.env,
universal_newlines=True)