test/integration: add temporary debug 'kubectl attach' logging

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
Andrew Keesler 2021-03-19 10:42:11 -04:00
parent ebe01a5aef
commit 6154883855
No known key found for this signature in database
GPG Key ID: 27CE0444346F9413

View File

@ -591,7 +591,7 @@ func TestImpersonationProxy(t *testing.T) { //nolint:gocyclo // yeah, it's compl
}) })
timeout, cancelFunc := context.WithTimeout(ctx, 2*time.Minute) timeout, cancelFunc := context.WithTimeout(ctx, 2*time.Minute)
defer cancelFunc() defer cancelFunc()
attachCmd, attachStdout, attachStderr := kubectlCommand(timeout, t, kubeconfigPath, envVarsWithProxy, "attach", "--stdin=true", "--namespace", namespaceName, attachPod.Name) attachCmd, attachStdout, attachStderr := kubectlCommand(timeout, t, kubeconfigPath, envVarsWithProxy, "attach", "--stdin=true", "--namespace", namespaceName, attachPod.Name, "-v=10")
attachCmd.Env = envVarsWithProxy attachCmd.Env = envVarsWithProxy
attachStdin, err := attachCmd.StdinPipe() attachStdin, err := attachCmd.StdinPipe()
require.NoError(t, err) require.NoError(t, err)