File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -33,18 +33,23 @@ if [ $ver != "master" ]; then
33
33
repo=" $repo /$ver "
34
34
fi
35
35
36
- if [[ " $# " -gt 1 ]]; then
37
- if [[ " $2 " == * " local" * ]] && [[ " $2 " == * " blobfuse-proxy" * ]]; then
38
- echo " set enable-blobfuse-proxy as true ..."
39
- kubectl apply -f ./deploy/blobfuse-proxy/blobfuse-proxy.yaml
40
- sed -i ' s/enable-blobfuse-proxy=false/enable-blobfuse-proxy=true/g' $repo /csi-blob-node.yaml
41
- fi
42
- fi
43
-
44
36
echo " Installing Azure Blob Storage CSI driver, version: $ver ..."
45
37
kubectl apply -f $repo /rbac-csi-blob-controller.yaml
46
38
kubectl apply -f $repo /rbac-csi-blob-node.yaml
47
39
kubectl apply -f $repo /csi-blob-driver.yaml
48
40
kubectl apply -f $repo /csi-blob-controller.yaml
49
- kubectl apply -f $repo /csi-blob-node.yaml
41
+
42
+ if [[ " $# " -gt 1 ]]; then
43
+ if [[ " $2 " == * " blobfuse-proxy" * ]]; then
44
+ echo " set enable-blobfuse-proxy as true ..."
45
+ kubectl apply -f ./deploy/blobfuse-proxy/blobfuse-proxy.yaml
46
+ if [[ " $2 " == * " local" * ]]; then
47
+ cat $repo /csi-blob-node.yaml | sed ' s/enable-blobfuse-proxy=false/enable-blobfuse-proxy=true/g' | kubectl apply -f -
48
+ else
49
+ curl -s $repo /csi-blob-node.yaml | sed ' s/enable-blobfuse-proxy=false/enable-blobfuse-proxy=true/g' | kubectl apply -f -
50
+ fi
51
+ else
52
+ kubectl apply -f $repo /csi-blob-node.yaml
53
+ fi
54
+ fi
50
55
echo ' Azure Blob Storage CSI driver installed successfully.'
You can’t perform that action at this time.
0 commit comments