Work on OVH provider
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Adrien Reslinger 2021-03-16 20:49:19 +01:00
parent 895fbff2fe
commit 2451ae0d2f
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
5 changed files with 48 additions and 4 deletions

View file

@ -57,15 +57,35 @@
dest: tmp/cert-manager-webhook-ovh
- name: Deploy OVH webhook chart from local path
run_once: true
community.kubernetes.helm:
state: present
context: "{{ my_context }}"
name: cert-manager-webhook-ovh
chart_ref: tmp/cert-manager-webhook-ovh/deploy/cert-manager-webhook-ovh
release_namespace: "{{ cert_manager_namespace }}"
values:
# groupName: '{{ cert_manager_issuer | selectattr('provider', 'match', 'ovh') | first }}'
groupName: '{{ cert_manager_issuer | json_query(\"[?provider=='ovh']\") | first }}'
# with_items:
# - "{{ cert_manager_issuer | selectattr('ovh', 'in', provider) }}"
# when:
# - item.provider == "ovh"
- name: OVH WebHook dependency
k8s:
state: present
context: "{{ my_context }}"
apply: true
namespace: "{{ cert_manager_namespace }}"
resource_definition: "{{ lookup('template', item) | from_yaml }}"
with_items:
- cert-manager-webhook-ovh-Role.yml.j2
- cert-manager-webhook-ovh-RoleBinding.yml.j2
when:
- false
- cert_manager_issuer is defined
- cert_manager_issuer.[].provider == "ovh"
tags: cert-manager