Update csi script
This commit is contained in:
parent
7d3d1f65bd
commit
099d133e8b
3 changed files with 6 additions and 3 deletions
|
|
@ -4,6 +4,9 @@ cd "$(dirname ${0})"/../files/
|
|||
wget https://github.com/jetstack/cert-manager-csi/raw/master/deploy/cert-manager-csi-driver.yaml
|
||||
|
||||
kubernetes-split-yaml cert-manager-csi-driver.yaml > generated.log
|
||||
if [ -d csi ]; then
|
||||
rm -fr csi
|
||||
fi
|
||||
mv generated csi
|
||||
cat generated.log | while read LIGNE; do if [ $(echo "${LIGNE}" | grep -c ^File) -eq 1 ]; then echo -n "${LIGNE} "; else echo "${LIGNE}"; fi; done | grep ^File | sort -V | sed 's|.*\(generated/\)\(.*\.yaml\)| - "csi/\2"|'
|
||||
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@
|
|||
- set_fact:
|
||||
certmanager_csi_state: "present"
|
||||
when:
|
||||
- certmanager_csi
|
||||
- certmanager_csi|bool
|
||||
|
||||
- set_fact:
|
||||
certmanager_csi_state: "absent"
|
||||
when:
|
||||
- not certmanager_csi
|
||||
- not certmanager_csi|bool
|
||||
|
||||
- name: Cert Manager files version {{ certmanager_version }} need to be {{ certmanager_csi_state }}
|
||||
k8s:
|
||||
|
|
|
|||
|
|
@ -59,4 +59,4 @@
|
|||
include_tasks: "csi.yml"
|
||||
when:
|
||||
- certmanager_csi
|
||||
tags: certmanager
|
||||
tags: certmanager|bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue