Skip to content

Commit

Permalink
Merge pull request #148 from speechmatics/fix_networking_retries
Browse files Browse the repository at this point in the history
add missing 'until' condition in control plane setup
  • Loading branch information
geerlingguy authored Jun 22, 2023
2 parents fc69029 + 3355986 commit 82caba3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tasks/control-plane-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,26 @@
register: flannel_result
changed_when: "'created' in flannel_result.stdout"
when: kubernetes_pod_network.cni == 'flannel'
retries: 3
until: flannel_result is not failed
retries: 12
delay: 5

- name: Configure Calico networking.
command: "kubectl apply -f {{ kubernetes_calico_manifest_file }}"
register: calico_result
changed_when: "'created' in calico_result.stdout"
when: kubernetes_pod_network.cni == 'calico'
retries: 3
until: calico_result is not failed
retries: 12
delay: 5

- name: Get Kubernetes version for Weave installation.
shell: kubectl version | base64 | tr -d '\n'
changed_when: false
register: kubectl_version
when: kubernetes_pod_network.cni == 'weave'
retries: 3
until: kubectl_version is not failed
retries: 12
delay: 5

- name: Configure Weave networking.
Expand Down

0 comments on commit 82caba3

Please sign in to comment.