Browse Source

Merge pull request #8734 from mtnbikenc/fix-scc-check

Add retries to SCC check on upgrade
Scott Dodson 6 years ago
parent
commit
31696e56aa
1 changed files with 2 additions and 0 deletions
  1. 2 0
      playbooks/openshift-master/private/upgrade.yml

+ 2 - 0
playbooks/openshift-master/private/upgrade.yml

@@ -12,6 +12,8 @@
       {{ openshift_client_binary }} adm policy --config={{ openshift.common.config_base }}/master/admin.kubeconfig reconcile-sccs --additive-only=true -o name
     register: check_reconcile_scc_result
     when: openshift_reconcile_sccs_reject_change | default(true) | bool
+    until: check_reconcile_scc_result.rc == 0
+    retries: 3
 
   - fail:
       msg: >