Skip to content

Commit

Permalink
add create_monitoring and delete_monitoring (#1102)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanweiguo authored and google-prow-robot committed Jun 8, 2018
1 parent e9aeb11 commit 8032a9d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,38 @@ function create_istio() {
kubectl apply -f ${ISTIO_DIR}/istio.yaml
}


function create_monitoring() {
kubectl apply -R -f config/monitoring/100-common \
-f config/monitoring/150-elasticsearch-prod \
-f third_party/config/monitoring/common \
-f third_party/config/monitoring/elasticsearch \
-f config/monitoring/200-common \
-f config/monitoring/200-common/100-istio.yaml
}

function create_everything() {
create_istio
kubectl apply -f third_party/config/build/release.yaml
ko apply -f config/
create_monitoring
}

function delete_istio() {
kubectl delete -f ${ISTIO_DIR}/istio.yaml
kubectl delete clusterrolebinding cluster-admin-binding
}

function delete_monitoring() {
kubectl delete --ignore-not-found=true -f config/monitoring/100-common \
-f config/monitoring/150-elasticsearch-prod \
-f third_party/config/monitoring/common \
-f third_party/config/monitoring/elasticsearch \
-f config/monitoring/200-common
}

function delete_everything() {
delete_monitoring
ko delete --ignore-not-found=true -f config/
kubectl delete --ignore-not-found=true -f third_party/config/build/release.yaml
delete_istio
Expand Down

0 comments on commit 8032a9d

Please sign in to comment.