Skip to content

Commit

Permalink
k8s: add sync to make sure the data is written
Browse files Browse the repository at this point in the history
  • Loading branch information
mplsgrant committed Oct 7, 2024
1 parent 92fcbab commit f35c0c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/warnet/k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def write_file_to_container(
):
namespace = get_default_namespace_or(namespace)
sclient = get_static_client()
exec_command = ["sh", "-c", f"cat > {dst_path}.tmp"]
exec_command = ["sh", "-c", f"cat > {dst_path}.tmp && sync"]
try:
res = stream(
sclient.connect_get_namespaced_pod_exec,
Expand Down

0 comments on commit f35c0c4

Please sign in to comment.