mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
Merge pull request #102333 from mcbenjemaa/fix/102295
Add Log statement in exec_util.go for ClientSet Creation
This commit is contained in:
commit
c4c3062c07
@ -58,6 +58,7 @@ func (f *Framework) ExecWithOptions(options ExecOptions) (string, string, error)
|
|||||||
|
|
||||||
const tty = false
|
const tty = false
|
||||||
|
|
||||||
|
Logf("ExecWithOptions: Clientset creation")
|
||||||
req := f.ClientSet.CoreV1().RESTClient().Post().
|
req := f.ClientSet.CoreV1().RESTClient().Post().
|
||||||
Resource("pods").
|
Resource("pods").
|
||||||
Name(options.PodName).
|
Name(options.PodName).
|
||||||
@ -74,8 +75,8 @@ func (f *Framework) ExecWithOptions(options ExecOptions) (string, string, error)
|
|||||||
}, scheme.ParameterCodec)
|
}, scheme.ParameterCodec)
|
||||||
|
|
||||||
var stdout, stderr bytes.Buffer
|
var stdout, stderr bytes.Buffer
|
||||||
|
Logf("ExecWithOptions: execute(POST %s %s)", req.URL())
|
||||||
err = execute("POST", req.URL(), config, options.Stdin, &stdout, &stderr, tty)
|
err = execute("POST", req.URL(), config, options.Stdin, &stdout, &stderr, tty)
|
||||||
|
|
||||||
if options.PreserveWhitespace {
|
if options.PreserveWhitespace {
|
||||||
return stdout.String(), stderr.String(), err
|
return stdout.String(), stderr.String(), err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user