From 9091f508da1d4bc99d7f2abdf3ce09996f1e011e Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Tue, 31 Oct 2017 19:26:25 -0400 Subject: Retry service account bootstrap kubeconfig creation Pulled back from the larger refactor so this job can be enabled. --- roles/openshift_master/tasks/bootstrap.yml | 3 +++ 1 file changed, 3 insertions(+) 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: -- cgit v1.2.3