Browse Source

Retry applying podsecurity policies (#4279)

pull/4299/head
Matthew Mosesohn 5 years ago
committed by Kubernetes Prow Robot
parent
commit
4638acfe81
1 changed files with 8 additions and 0 deletions
  1. 8
      roles/kubernetes-apps/cluster_roles/tasks/main.yml

8
roles/kubernetes-apps/cluster_roles/tasks/main.yml

@ -46,6 +46,10 @@
resource: "{{item.item.type}}"
filename: "{{kube_config_dir}}/{{item.item.file}}"
state: "latest"
register: result
until: result is succeeded
retries: 10
delay: 6
with_items: "{{ psp_manifests.results }}"
when:
- inventory_hostname == groups['kube-master'][0]
@ -69,6 +73,10 @@
resource: "clusterrolebinding"
filename: "{{ kube_config_dir }}/node-crb.yml"
state: latest
register: result
until: result is succeeded
retries: 10
delay: 6
when:
- rbac_enabled
- node_crb_manifest.changed

Loading…
Cancel
Save