This commit is contained in:
parent
895fbff2fe
commit
2451ae0d2f
5 changed files with 48 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue