Skip to content

Commit e8a75ac

Browse files
authored
Merge pull request kubernetes#128420 from tallclair/e2e-cleanup
Reuse cached client config for exec requests in e2e
2 parents 42b7cfe + 2407a49 commit e8a75ac

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/e2e/framework/pod/exec_util.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ func ExecWithOptionsContext(ctx context.Context, f *framework.Framework, options
5858
if !options.Quiet {
5959
framework.Logf("ExecWithOptions %+v", options)
6060
}
61-
config, err := framework.LoadConfig()
62-
framework.ExpectNoError(err, "failed to load restclient config")
6361

6462
const tty = false
6563

@@ -80,7 +78,7 @@ func ExecWithOptionsContext(ctx context.Context, f *framework.Framework, options
8078

8179
var stdout, stderr bytes.Buffer
8280
framework.Logf("ExecWithOptions: execute(POST %s)", req.URL())
83-
err = execute(ctx, "POST", req.URL(), config, options.Stdin, &stdout, &stderr, tty)
81+
err := execute(ctx, "POST", req.URL(), f.ClientConfig(), options.Stdin, &stdout, &stderr, tty)
8482

8583
if options.PreserveWhitespace {
8684
return stdout.String(), stderr.String(), err

0 commit comments

Comments
 (0)