Skip to content

Commit

Permalink
Merge pull request kubernetes#107137 from crisboarna/feat/101172_wind…
Browse files Browse the repository at this point in the history
…ows-sync-cleanup

chore(kubectl_utils): remove windows specifc command addition for sync
  • Loading branch information
k8s-ci-robot authored Dec 24, 2021
2 parents 65ac7f0 + e755c1c commit 1df88a8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/e2e/framework/kubectl/kubectl_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 1df88a8

Please sign in to comment.