mirror of
				https://github.com/prometheus-operator/kube-prometheus.git
				synced 2025-10-30 23:51:01 +01:00 
			
		
		
		
	Adding the following accross the project: ```bash /# exit immediately when a command fails set -e /# only exit with zero if all commands of the pipeline exit successfully set -o pipefail /# error on unset variables +set -u ```
		
			
				
	
	
		
			10 lines
		
	
	
		
			228 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			228 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| # exit immediately when a command fails
 | |
| set -e
 | |
| # only exit with zero if all commands of the pipeline exit successfully
 | |
| set -o pipefail
 | |
| # error on unset variables
 | |
| set -u
 | |
| 
 | |
| kubectl apply -f examples/example-app
 |