Add DigitalOcean storage
This commit is contained in:
parent
a314988c99
commit
4840d9e0e1
24 changed files with 587 additions and 1 deletions
|
|
@ -1,4 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
#
|
||||
# Run from files directory
|
||||
#
|
||||
|
||||
wget https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml
|
||||
kubernetes-split-yaml local-path-storage.yaml > generated.log
|
||||
mv local{,.old}
|
||||
|
|
@ -21,3 +26,14 @@ mv generated 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 linode/linode-block-storage-StorageClass.yaml
|
||||
rm -fr 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
|
||||
mv digitalocean{,.old}
|
||||
mv generated 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"|'
|
||||
for i in do-block-storage-StorageClass.yaml do-block-storage-VolumeSnapshotClass.yaml; do
|
||||
sed -e /is-default-class/d -e /annotations/d -i digitalocean/"$i"
|
||||
done
|
||||
rm -fr digitalocean.old generated.log csi-digitalocean-latest.yaml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue