Update to v0.14.2

This commit is contained in:
Adrien Reslinger 2020-04-08 19:08:13 +02:00
parent bc8cb6fe9b
commit 7d3d1f65bd
31 changed files with 40 additions and 37 deletions

View file

@ -1,9 +1,12 @@
#!/bin/bash
CERTMANAGER_VERSION=0.14.1
CERTMANAGER_VERSION=0.14.2
CERTMANAGER_SHORTVERSION="$(echo "${CERTMANAGER_VERSION}" | sed 's/^\(.*\)\.[0-9]$/\1/')"
cd "$(dirname ${0})"/../templates/
wget https://github.com/jetstack/cert-manager/releases/download/v"${CERTMANAGER_VERSION}"/cert-manager.yaml
kubernetes-split-yaml cert-manager.yaml > generated.log
if [ -d "${CERTMANAGER_SHORTVERSION}" ]; then
rm -fr "${CERTMANAGER_SHORTVERSION}"
fi
mv generated "${CERTMANAGER_SHORTVERSION}"
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\)| - "'${CERTMANAGER_SHORTVERSION}'/\2"|'