summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master
diff options
context:
space:
mode:
authorClayton Coleman <ccoleman@redhat.com>2017-10-31 19:26:25 -0400
committerClayton Coleman <ccoleman@redhat.com>2017-10-31 19:26:52 -0400
commit9091f508da1d4bc99d7f2abdf3ce09996f1e011e (patch)
treefcb22d20ff17dc4436c1cfd12056d8b4a543c9e0 /roles/openshift_master
parent4572e05b17eed19851861e52507567a86d0b3432 (diff)
downloadopenshift-9091f508da1d4bc99d7f2abdf3ce09996f1e011e.tar.gz
openshift-9091f508da1d4bc99d7f2abdf3ce09996f1e011e.tar.bz2
openshift-9091f508da1d4bc99d7f2abdf3ce09996f1e011e.tar.xz
openshift-9091f508da1d4bc99d7f2abdf3ce09996f1e011e.zip
Retry service account bootstrap kubeconfig creation
Pulled back from the larger refactor so this job can be enabled.
Diffstat (limited to 'roles/openshift_master')
-rw-r--r--roles/openshift_master/tasks/bootstrap.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/openshift_master/tasks/bootstrap.yml b/roles/openshift_master/tasks/bootstrap.yml
index 1c30c1dea..f837a8bae 100644
--- a/roles/openshift_master/tasks/bootstrap.yml
+++ b/roles/openshift_master/tasks/bootstrap.yml
@@ -4,6 +4,9 @@
- name: create service account kubeconfig with csr rights
command: "oc serviceaccounts create-kubeconfig node-bootstrapper -n openshift-infra"
register: kubeconfig_out
+ until: kubeconfig_out.rc == 0
+ retries: 24
+ delay: 5
- name: put service account kubeconfig into a file on disk for bootstrap
copy: