Add cluster api readycheck;Reorder tasks
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2023-01-06 13:34:26 +01:00
parent 07b61d8bf3
commit 36e3a2b99f
3 changed files with 15 additions and 1 deletions

View File

@ -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:

View File

@ -0,0 +1 @@
# - name: Register workload cluster in argo-cd

View File

@ -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