Rename update script
This commit is contained in:
parent
0eac88e02f
commit
1decf0a643
1 changed files with 0 additions and 0 deletions
|
|
@ -1,60 +0,0 @@
|
|||
#!/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}
|
||||
mv generated local
|
||||
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\)| - "local/\2"|'
|
||||
sed 's|/opt/local-path-provisioner|/mnt/local|' -i local/local-path-config-ConfigMap.yaml
|
||||
#mv local-path-storage.yaml local-path-storage_$(date +%Y%m%d).yaml
|
||||
rm -fr local.old generated.log local-path-storage.yaml
|
||||
|
||||
|
||||
#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 linode{,.old}
|
||||
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
|
||||
|
||||
|
||||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue