forked from NetApp-Learning-Services/gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
13 lines (12 loc) · 791 Bytes
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
# A simple bash script to reset and test the application
kubectl -n gateway-system delete svm storagevirtualmachine-testcase
kubectl -n gateway-system delete secret ontap-cluster-admin
kubectl -n gateway-system delete secret ontap-svm-admin
kubectl delete namespace gateway-system
git pull origin v1beta1 #need to update when changing feature branches
make docker-build docker-push IMG=docker-registry:30001/curtisab/gateway:v1beta1
make deploy
# kubectl -n gateway-system create secret docker-registry myreg --docker-server=https://docker-registry:30001 --docker-username=admin --docker-password=Netapp1!
# kubectl -n gateway-system patch sa gateway-controller-manager -p '{\"imagePullSecrets\": [{\"name\": \"myreg\"}]}'
kubectl -n gateway-system create -f notes/testCR.yaml