Update script
This commit is contained in:
parent
8af38fd20a
commit
c2dcfea3f8
1 changed files with 7 additions and 4 deletions
11
bin/gen_list.sh
Normal file → Executable file
11
bin/gen_list.sh
Normal file → Executable file
|
|
@ -1,8 +1,11 @@
|
|||
#!/bin/bash
|
||||
wget https://github.com/jetstack/cert-manager/releases/download/v0.12.0/cert-manager.yaml
|
||||
CERTMANAGER_VERSION=0.14.1
|
||||
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
|
||||
# mv generated/* ./ && rmdir generated/
|
||||
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\)| - "0.12/\2"|'
|
||||
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"|'
|
||||
|
||||
sed '/args:/ a\ - --dns01-recursive-nameservers=8.8.8.8:53,1.1.1.1:53' -i cert-manager-Deployment.yaml
|
||||
sed '/args:/ a\ - --dns01-recursive-nameservers=8.8.8.8:53,1.1.1.1:53' -i "${CERTMANAGER_SHORTVERSION}"/cert-manager-Deployment.yaml
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue