Fix retries keyword missing until instruction (#5989)

This commit is contained in:
Florian Ruynat
2020-04-21 16:20:56 +02:00
committed by GitHub
parent 2bec26dba5
commit ca45d5ffbe
6 changed files with 17 additions and 2 deletions

View File

@@ -24,6 +24,7 @@
register: kubeadm_upgrade
# Retry is because upload config sometimes fails
retries: 3
until: kubeadm_upgrade.rc == 0
when: inventory_hostname == groups['kube-master']|first
failed_when: kubeadm_upgrade.rc != 0 and "field is immutable" not in kubeadm_upgrade.stderr
notify: Master | restart kubelet