Fix readycheck;Create namespaces explicitly
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2022-08-29 14:43:26 +02:00
parent b0dad1caf7
commit 0c1fca9643
2 changed files with 32 additions and 28 deletions

View File

@ -8,9 +8,7 @@
kubeconfig: "{{ kubeconfig.path }}"
values: "{{ components.stepcertificates.chart_values }}"
- block:
- name: Retrieve configmap w/ root certificate
- name: Retrieve configmap w/ root certificate
kubernetes.core.k8s_info:
kind: ConfigMap
name: step-certificates-certs
@ -18,7 +16,17 @@
kubeconfig: "{{ kubeconfig.path }}"
register: stepca_cm_certs
- name: Store root certificate in namespaced secrets
- 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
kubernetes.core.k8s:
state: present
definition:
@ -34,10 +42,6 @@
- argo-cd
- kube-system
tags:
- never
- final
- name: Configure step-ca passthrough ingress
ansible.builtin.template:
src: ingressroutetcp.j2

View File

@ -15,7 +15,7 @@
url: https://gitops.{{ vapp['metacluster.fqdn'] }}/api/version
method: GET
register: api_readycheck
until: api_readycheck.json.Version | default(false) | bool
until: api_readycheck.json.Version is defined
retries: 3
delay: 30