20 lines
		
	
	
		
			490 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			490 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 tutorial resources...${nn}"
 | |
| kubectl delete -k "${EXAMPLEDIR}"/k8s/. --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}"
 |