Update template and update script
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
c0ceae535e
commit
beff055784
21 changed files with 643 additions and 71 deletions
|
|
@ -25,18 +25,24 @@ 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"|'
|
||||
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
|
||||
|
||||
|
||||
wget https://raw.githubusercontent.com/digitalocean/csi-digitalocean/master/deploy/kubernetes/releases/csi-digitalocean-latest.yaml
|
||||
kubernetes-split-yaml csi-digitalocean-latest.yaml > generated.log
|
||||
DO_CSI_VERSION=2.0.0
|
||||
mv files/digitalocean{,.old}
|
||||
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"|'
|
||||
mkdir files/digitalocean
|
||||
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"|'
|
||||
rm -f $FICHIER generated.log
|
||||
done
|
||||
for i in do-block-storage-StorageClass.yaml do-block-storage-VolumeSnapshotClass.yaml; do
|
||||
sed -e /is-default-class/d -e /annotations/d -i files/digitalocean/"$i"
|
||||
done
|
||||
rm -fr files/digitalocean.old generated.log csi-digitalocean-latest.yaml
|
||||
rm -fr files/digitalocean.old
|
||||
|
||||
|
||||
#https://github.com/scaleway/scaleway-csi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue