mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
chore(kubectl_utils): remove windows specifc command addition for sync
This commit is contained in:
parent
489fb9bee3
commit
e755c1cf2a
@ -142,10 +142,6 @@ func (tk *TestKubeconfig) WriteFileViaContainer(podName, containerName string, p
|
||||
}
|
||||
}
|
||||
command := fmt.Sprintf("echo '%s' > '%s'; sync", contents, path)
|
||||
// TODO(mauriciopoppe): remove this statement once we add `sync` to the test image, ref #101172
|
||||
if e2epod.NodeOSDistroIs("windows") {
|
||||
command = fmt.Sprintf("echo '%s' > '%s';", contents, path)
|
||||
}
|
||||
stdout, stderr, err := tk.kubectlExecWithRetry(tk.Namespace, podName, containerName, "--", "/bin/sh", "-c", command)
|
||||
if err != nil {
|
||||
e2elog.Logf("error running kubectl exec to write file: %v\nstdout=%v\nstderr=%v)", err, string(stdout), string(stderr))
|
||||
|
Loading…
Reference in New Issue
Block a user