Update to version v3.19.0
This commit is contained in:
parent
3fbe1541c1
commit
e415d35bda
8 changed files with 84 additions and 36 deletions
|
|
@ -1,15 +1,18 @@
|
|||
#!/bin/bash
|
||||
curl https://docs.projectcalico.org/manifests/calico.yaml -O
|
||||
BASEURL=https://docs.projectcalico.org/manifests
|
||||
#BASEURL=https://docs.projectcalico.org/archive/v3.18/manifests
|
||||
curl "${BASEURL}"/calico.yaml -O
|
||||
kubernetes-split-yaml calico.yaml > generated.log
|
||||
mv generated/*.yaml files/
|
||||
rmdir generated
|
||||
echo -e '---\ncalico_files:' > vars/calico-files.yaml
|
||||
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\)| - "\2"|' >> vars/calico-files.yaml
|
||||
rm -f generated.log calico.yaml
|
||||
curl https://docs.projectcalico.org/manifests/calicoctl.yaml -O
|
||||
curl "${BASEURL}"/calicoctl.yaml -O
|
||||
kubernetes-split-yaml calicoctl.yaml > generated.log
|
||||
mv generated/*.yaml files/
|
||||
rmdir generated
|
||||
echo -e '\ncalicoctl_files:' >> vars/calico-files.yaml
|
||||
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\)| - "\2"|' >> vars/calico-files.yaml
|
||||
rm -f generated.log calicoctl.yaml
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue