Skip to content

Commit

Permalink
add calico kubeconfig wait timeout (kubernetes-sigs#9994)
Browse files Browse the repository at this point in the history
Signed-off-by: tu1h <lihai.tu@daocloud.io>
  • Loading branch information
0ekk authored and pedromcpedro committed May 8, 2024
1 parent d67f0b1 commit 9837de6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions roles/network_plugin/calico/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,6 @@ calico_apiserver_enabled: false

# Calico feature detect override
calico_feature_detect_override: ""

# Calico kubeconfig wait timeout in seconds
calico_kubeconfig_wait_timeout: 300
1 change: 1 addition & 0 deletions roles/network_plugin/calico/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@
- name: Wait for calico kubeconfig to be created
wait_for:
path: /etc/cni/net.d/calico-kubeconfig
timeout: "{{ calico_kubeconfig_wait_timeout }}"
when:
- inventory_hostname not in groups['kube_control_plane']
- calico_datastore == "kdd"
Expand Down

0 comments on commit 9837de6

Please sign in to comment.