Skip to content

Commit

Permalink
fix: installation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Jul 7, 2020
1 parent 384b9c4 commit 9749957
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions deploy/install-driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [[ "$#" -gt 0 ]]; then
ver="$1"
fi

repo="https://raw.githubusercontent.com/kubernetes-sigs/azurefile-csi-driver/master/deploy"
repo="https://raw.githubusercontent.com/kubernetes-sigs/azurefile-csi-driver/$ver/deploy"
if [[ "$#" -gt 1 ]]; then
if [[ "$2" == *"local"* ]]; then
echo "use local deploy"
Expand All @@ -30,11 +30,10 @@ if [[ "$#" -gt 1 ]]; then
fi

if [ $ver != "master" ]; then
repo="$repo/$ver"
repo="$repo/$ver"
fi

echo "Installing Azure File CSI driver, version: $ver ..."
kubectl apply -f $repo/crd-csi-node-info.yaml
kubectl apply -f $repo/rbac-csi-azurefile-controller.yaml
kubectl apply -f $repo/rbac-csi-azurefile-node.yaml
kubectl apply -f $repo/csi-azurefile-controller.yaml
Expand Down

0 comments on commit 9749957

Please sign in to comment.