From 5781494eda65fac9fd0f317ddc5754e5185e5830 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Fri, 9 Oct 2020 11:15:19 -0700 Subject: [PATCH] Minor tweak to aws efs upate tooling --- charts/kubezero-aws-efs-csi-driver/update.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/kubezero-aws-efs-csi-driver/update.sh b/charts/kubezero-aws-efs-csi-driver/update.sh index f0af439e..c35e2746 100755 --- a/charts/kubezero-aws-efs-csi-driver/update.sh +++ b/charts/kubezero-aws-efs-csi-driver/update.sh @@ -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