Update CSI driver deployment
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Adrien Reslinger 2021-11-19 08:36:34 +01:00
parent 249c4dbc7b
commit 6d9b2c182d
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
3 changed files with 8 additions and 27 deletions

View file

@ -4,3 +4,4 @@ cert_manager_namespace: "cert-manager"
certmanager_csi: true certmanager_csi: true
certmanager_version: "1.6.1" certmanager_version: "1.6.1"
certmanager_csi_version: "0.2.0"

View file

@ -1,26 +0,0 @@
---
- name: CSI Cert Manager Setup
block:
- name: Define state to present
set_fact:
certmanager_csi_state: "present"
when:
- certmanager_csi|bool
- name: Define state to absent
set_fact:
certmanager_csi_state: "absent"
when:
- not certmanager_csi|bool
- name: CSI Cert Manager files need to be {{ certmanager_csi_state }}
k8s:
state: "{{ certmanager_csi_state }}"
context: "{{ my_context }}"
apply: true
definition: "{{ item }}"
with_items:
- "{{ lookup('url', certmanager_csi_driver_url, split_lines=False) | from_yaml_all | list }}"
tags:
- cert-manager
- storage

View file

@ -130,7 +130,13 @@
- name: install / uninstall Cert-Manager CSI Kubernetes drivers - name: install / uninstall Cert-Manager CSI Kubernetes drivers
include_tasks: "csi.yml" kubernetes.core.helm:
context: "{{ my_context }}"
name: cert-manager-csi-driver
chart_ref: jetstack/cert-manager-csi-driver
chart_version: "{{ certmanager_csi_version }}"
create_namespace: yes
release_namespace: "cert-manager"
when: when:
- certmanager_csi|bool - certmanager_csi|bool
tags: tags: