Some checks reported errors
continuous-integration/drone/push Build encountered an error
65 lines
3.4 KiB
Bash
Executable file
65 lines
3.4 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
#
|
|
# Run from files directory
|
|
#
|
|
|
|
# git clone https://github.com/linode/linode-blockstorage-csi-driver.git
|
|
# mv linode{,.old}
|
|
# mv linode-blockstorage-csi-driver/pkg/linode-bs/deploy/kubernetes linode
|
|
# rm -fr linode-blockstorage-csi-driver linode.old
|
|
# https://raw.githubusercontent.com/linode/linode-blockstorage-csi-driver/master/pkg/linode-bs/deploy/releases/linode-blockstorage-csi-driver-v0.1.4.yaml
|
|
wget https://raw.githubusercontent.com/linode/linode-blockstorage-csi-driver/master/pkg/linode-bs/deploy/releases/linode-blockstorage-csi-driver.yaml
|
|
kubernetes-split-yaml linode-blockstorage-csi-driver.yaml > generated.log
|
|
mv files/linode{,.old}
|
|
mv generated files/linode
|
|
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
|
|
|
|
|
|
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"|' >> vars/digitalocean.yaml
|
|
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
|
|
|
|
if [ ! -d files/secrets-provider-gopass ]; then mkdir files/secrets-provider-gopass; fi
|
|
wget https://github.com/camptocamp/secrets-store-csi-driver-provider-gopass/raw/master/deployment/provider-gopass-installer.yaml && \
|
|
\mv provider-gopass-installer.yaml files/secrets-provider-gopass/
|
|
|
|
|
|
# https://github.com/scaleway/scaleway-csi
|
|
# https://github.com/kubernetes-sigs/alibaba-cloud-csi-driver
|
|
# https://github.com/hetznercloud/csi-driver
|
|
# https://github.com/packethost/csi-packet
|
|
# https://github.com/kubernetes-sigs/azuredisk-csi-driver
|
|
# https://github.com/kubernetes-sigs/azurefile-csi-driver
|
|
# https://github.com/TencentCloud/kubernetes-csi-tencentcloud
|
|
# https://github.com/flant/yandex-csi-driver
|
|
|
|
# https://github.com/ceph/ceph-csi
|
|
# https://github.com/jparklab/synology-csi
|
|
# https://github.com/woohhan/dropbox-csi
|
|
# https://github.com/chr-fritz/csi-sshfs
|
|
# https://github.com/ctrox/csi-s3 ?
|
|
# https://github.com/wavezhang/k8s-csi-lvm ?
|
|
# https://github.com/juicedata/juicefs-csi-driver ?
|
|
|
|
|
|
# https://github.com/Azure/secrets-store-csi-driver-provider-azure
|
|
# https://github.com/hashicorp/secrets-store-csi-driver-provider-vault
|
|
|
|
# https://github.com/topolvm/topolvm/tree/main/charts/topolvm
|