Update from upstream
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adrien Reslinger 2020-10-10 13:11:17 +02:00
parent d6672663b0
commit 2be4c03df1
8 changed files with 178 additions and 128 deletions

View file

@ -33,7 +33,8 @@ wget https://raw.githubusercontent.com/linode/linode-blockstorage-csi-driver/mas
kubernetes-split-yaml linode-blockstorage-csi-driver.yaml > generated.log
mv files/linode{,.old}
mv generated files/linode
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\)| - "linode/\2"|'
echo -e "---\nstorage_linode_files_list:" > vars/linode.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\)| - "linode/\2"|' >> vars/linode.yaml
sed -e /is-default-class/d -e /annotations/d -i files/linode/linode-block-storage-StorageClass.yaml
sed -e /is-default-class/d -e /annotations/d -i files/linode/linode-block-storage-retain-StorageClass.yaml
rm -fr files/linode.old generated.log linode-blockstorage-csi-driver.yaml
@ -42,11 +43,12 @@ rm -fr files/linode.old generated.log linode-blockstorage-csi-driver.yaml
DO_CSI_VERSION=2.0.0
mv files/digitalocean{,.old}
mkdir files/digitalocean
echo -e "---\nstorage_linode_files_list:" > vars/digitalocean.yaml
for FICHIER in crds.yaml driver.yaml snapshot-controller.yaml; do
wget https://github.com/digitalocean/csi-digitalocean/raw/master/deploy/kubernetes/releases/csi-digitalocean-v${DO_CSI_VERSION}/$FICHIER
kubernetes-split-yaml $FICHIER >> generated.log
mv generated/* files/digitalocean/
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\)| - "digitalocean/\2"|'
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\)| - "digitalocean/\2"|' >> vars/digitalocean.yaml
rm -f $FICHIER generated.log
done
for i in do-block-storage-StorageClass.yaml do-block-storage-VolumeSnapshotClass.yaml; do