Minor tweak to aws efs upate tooling

This commit is contained in:
Stefan Reimer 2020-10-09 11:15:19 -07:00
parent fea850afcc
commit 5781494eda

View File

@ -1,6 +1,8 @@
#!/bin/bash
set -ex
# Upstream doesnt have proper Helm repo yet so we just download latest release and stuff it into charts
REPO="kubernetes-sigs/aws-efs-csi-driver"
[ -z "$RELEASE" ] && RELEASE=$(curl -sL -s https://api.github.com/repos/${REPO}/releases | grep '"tag_name":' | cut -d'"' -f4 | grep -v -E "(alpha|beta|rc)" | sort -t"." -k 1,1 -k 2,2 -k 3,3 -k 4,4 | tail -n 1)
@ -8,5 +10,5 @@ rm -rf git
git clone https://github.com/$REPO.git git
cd git && git checkout $RELEASE && cd -
rm -rf charts && mkdir -p charts/aws-efs-csi-driver
rm -rf charts/aws-efs-csi-driver && mkdir -p charts/aws-efs-csi-driver
mv git/helm/* charts/aws-efs-csi-driver