21 lines
573 B
Bash
Executable File
21 lines
573 B
Bash
Executable File
#/bin/bash
|
|
|
|
set -e
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
EXAMPLEDIR="$(dirname "$DIR")"
|
|
K8SDIR="$(dirname "$EXAMPLEDIR")"
|
|
|
|
bb=$(tput bold) || true
|
|
nn=$(tput sgr0) || true
|
|
green=$(tput setaf 2) || true
|
|
|
|
echo "${bb}Deleting backend and frontends resources...${nn}"
|
|
kubectl delete -k "${EXAMPLEDIR}"/k8s/. --ignore-not-found
|
|
kubectl delete -k "${EXAMPLEDIR}"/k8s/frontend-2/. --ignore-not-found
|
|
|
|
echo "${bb}Deleting resources from X.509 tutorial...${nn}"
|
|
bash "${K8SDIR}"/envoy-x509/scripts/clean-env.sh > /dev/null
|
|
|
|
echo "${green}Cleaning completed.${nn}"
|