Skip to content

Commit 424eba8

Browse files
committed
k8s: add sync to make sure the data is written
1 parent 6f18eb8 commit 424eba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/warnet/k8s.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def write_file_to_container(
368368
):
369369
namespace = get_default_namespace_or(namespace)
370370
sclient = get_static_client()
371-
exec_command = ["sh", "-c", f"cat > {dst_path}.tmp"]
371+
exec_command = ["sh", "-c", f"cat > {dst_path}.tmp && sync"]
372372
try:
373373
res = stream(
374374
sclient.connect_get_namespaced_pod_exec,

0 commit comments

Comments
 (0)