File tree 2 files changed +13
-6
lines changed
2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 3
3
set -o nounset
4
4
set -o errexit
5
5
6
- kubectl delete -f node.yaml --ignore-not-found
7
- kubectl delete -f controller.yaml --ignore-not-found
8
- kubectl delete -f setup-cluster.yaml --ignore-not-found
6
+ readonly PKGDIR=" ${GOPATH} /src/github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver"
7
+ readonly KUBEDEPLOY=" ${PKGDIR} /deploy/kubernetes"
8
+
9
+ kubectl delete -f " ${KUBEDEPLOY} /node.yaml" --ignore-not-found
10
+ kubectl delete -f " ${KUBEDEPLOY} /controller.yaml" --ignore-not-found
11
+ kubectl delete -f " ${KUBEDEPLOY} /setup-cluster.yaml" --ignore-not-found
12
+ kubectl delete secret cloud-sa --ignore-not-found
Original file line number Diff line number Diff line change 3
3
set -o nounset
4
4
set -o errexit
5
5
6
+ readonly PKGDIR=" ${GOPATH} /src/github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver"
7
+ readonly KUBEDEPLOY=" ${PKGDIR} /deploy/kubernetes"
8
+
6
9
if ! kubectl get secret cloud-sa;
7
10
then
8
11
kubectl create secret generic cloud-sa --from-file=" ${SA_FILE} "
9
12
fi
10
- kubectl apply -f setup-cluster.yaml
11
- kubectl apply -f node.yaml
12
- kubectl apply -f controller.yaml
13
+ kubectl apply -f " ${KUBEDEPLOY} / setup-cluster.yaml"
14
+ kubectl apply -f " ${KUBEDEPLOY} / node.yaml"
15
+ kubectl apply -f " ${KUBEDEPLOY} / controller.yaml"
You can’t perform that action at this time.
0 commit comments