Add cluster api readycheck;Reorder tasks
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
07b61d8bf3
commit
36e3a2b99f
@ -117,6 +117,18 @@
|
|||||||
content: "{{ capi_kubectl_config.stdout }}"
|
content: "{{ capi_kubectl_config.stdout }}"
|
||||||
mode: 0600
|
mode: 0600
|
||||||
no_log: true
|
no_log: true
|
||||||
|
|
||||||
|
- name: Wait for cluster to be available
|
||||||
|
ansible.builtin.shell:
|
||||||
|
cmd: >-
|
||||||
|
kubectl wait clusters.cluster.x-k8s.io/{{ vapp['workloadcluster.name'] | lower }} \
|
||||||
|
--for=condition=Ready \
|
||||||
|
--timeout 0s
|
||||||
|
register: cluster_readycheck
|
||||||
|
until: cluster_readycheck is succeeded
|
||||||
|
retries: "{{ playbook.retries }}"
|
||||||
|
delay: "{{ playbook.delays.long }}"
|
||||||
|
|
||||||
- name: Generate serviceaccount
|
- name: Generate serviceaccount
|
||||||
# TODO: move to GitOps
|
# TODO: move to GitOps
|
||||||
kubernetes.core.k8s:
|
kubernetes.core.k8s:
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
# - name: Register workload cluster in argo-cd
|
@ -1,4 +1,5 @@
|
|||||||
- import_tasks: hypervisor.yml
|
- import_tasks: hypervisor.yml
|
||||||
- import_tasks: registry.yml
|
- import_tasks: registry.yml
|
||||||
- import_tasks: clusterapi.yml
|
|
||||||
- import_tasks: nodetemplates.yml
|
- import_tasks: nodetemplates.yml
|
||||||
|
- import_tasks: clusterapi.yml
|
||||||
|
- import_tasks: gitops.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user