Fix readycheck;Create namespaces explicitly
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
b0dad1caf7
commit
0c1fca9643
@ -8,8 +8,6 @@
|
|||||||
kubeconfig: "{{ kubeconfig.path }}"
|
kubeconfig: "{{ kubeconfig.path }}"
|
||||||
values: "{{ components.stepcertificates.chart_values }}"
|
values: "{{ components.stepcertificates.chart_values }}"
|
||||||
|
|
||||||
- block:
|
|
||||||
|
|
||||||
- name: Retrieve configmap w/ root certificate
|
- name: Retrieve configmap w/ root certificate
|
||||||
kubernetes.core.k8s_info:
|
kubernetes.core.k8s_info:
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
@ -18,6 +16,16 @@
|
|||||||
kubeconfig: "{{ kubeconfig.path }}"
|
kubeconfig: "{{ kubeconfig.path }}"
|
||||||
register: stepca_cm_certs
|
register: stepca_cm_certs
|
||||||
|
|
||||||
|
- name: Create target namespaces
|
||||||
|
kubernetes.core.k8s:
|
||||||
|
kind: Namespace
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: present
|
||||||
|
kubeconfig: "{{ kubeconfig.path }}"
|
||||||
|
loop:
|
||||||
|
- argo-cd
|
||||||
|
# - kube-system
|
||||||
|
|
||||||
- name: Store root certificate in namespaced secrets
|
- name: Store root certificate in namespaced secrets
|
||||||
kubernetes.core.k8s:
|
kubernetes.core.k8s:
|
||||||
state: present
|
state: present
|
||||||
@ -34,10 +42,6 @@
|
|||||||
- argo-cd
|
- argo-cd
|
||||||
- kube-system
|
- kube-system
|
||||||
|
|
||||||
tags:
|
|
||||||
- never
|
|
||||||
- final
|
|
||||||
|
|
||||||
- name: Configure step-ca passthrough ingress
|
- name: Configure step-ca passthrough ingress
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: ingressroutetcp.j2
|
src: ingressroutetcp.j2
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
url: https://gitops.{{ vapp['metacluster.fqdn'] }}/api/version
|
url: https://gitops.{{ vapp['metacluster.fqdn'] }}/api/version
|
||||||
method: GET
|
method: GET
|
||||||
register: api_readycheck
|
register: api_readycheck
|
||||||
until: api_readycheck.json.Version | default(false) | bool
|
until: api_readycheck.json.Version is defined
|
||||||
retries: 3
|
retries: 3
|
||||||
delay: 30
|
delay: 30
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user