-
Notifications
You must be signed in to change notification settings - Fork 4
/
target-cluster.sh
8 lines (7 loc) · 1.2 KB
/
target-cluster.sh
1
2
3
4
5
6
7
kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v1.0.3/cert-manager.yaml
while [ "$(kubectl get pods -n cert-manager | grep -i running | grep '1/1' | wc -l | awk '{print $1}')" != "3" ]; do echo "INFO: Waiting cert-manager..." && kubectl get pods -n cert-manager && sleep 10 ; done
kubectl apply --validate=false -f https://raw.githubusercontent.com/brito-rafa/k8s-webhooks/master/examples-for-projectvelero/case-b/target/case-b-target-manually-added-mutations.yaml
while [ "$(kubectl get pods -n music-system | grep -i running | grep '2/2' | wc -l | awk '{print $1}')" != "1" ]; do echo "INFO: Waiting music-system... Break if it is taking too long..." && kubectl get pods -n music-system && sleep 10 ; done
echo "INFO: Run a Velero Restore or create the testing CRs running:"
echo " kubectl create --validate=false -f https://raw.githubusercontent.com/brito-rafa/k8s-webhooks/master/examples-for-projectvelero/case-b/target/music/config/samples/music_v2beta2_rockband.yaml"
echo " kubectl create --validate=false -f https://raw.githubusercontent.com/brito-rafa/k8s-webhooks/master/examples-for-projectvelero/case-b/target/music/config/samples/music_v2beta1_rockband.yaml"