Skip to content

Commit

Permalink
Add timeout to API calls in prepull script
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaspi authored Oct 24, 2024
1 parent 876b93e commit 59a65de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/prepull_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ def prepull_daemon(namespace: str,
raise TimeoutError("Timed out waiting for DaemonSet rollout to complete.")

daemon_info = kube_apps_api.list_namespaced_daemon_set(namespace=namespace,
label_selector=f"name={label_name}"
label_selector=f"name={label_name}",
timeout_seconds = 10
)

# Get total number of daemons that will be launched
Expand Down

0 comments on commit 59a65de

Please sign in to comment.