mirror of
				https://github.com/prometheus-operator/kube-prometheus.git
				synced 2025-10-30 07:31:19 +01:00 
			
		
		
		
	* Avoid race condition when deploying quickstart example The namespace and CRD creation must happen before any dependent objects are created. So we can put these in a separate directory (manifest/setup) so they can be created before the other objects. Some minor updates to the README and added a couple of scripts for the quickstarts Update travis script to avoid race condition Signed-off-by: Paul Gier <pgier@redhat.com> * simplify the example quickstart script and improve readme Signed-off-by: Paul Gier <pgier@redhat.com> * increase minikube memory to 6g for quickstart example
		
			
				
	
	
		
			17 lines
		
	
	
		
			544 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			544 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| 
 | |
| # This script uses arg $1 (name of *.jsonnet file to use) to generate the manifests/*.yaml files.
 | |
| 
 | |
| set -e
 | |
| set -x
 | |
| # only exit with zero if all commands of the pipeline exit successfully
 | |
| set -o pipefail
 | |
| 
 | |
| # Make sure to start with a clean 'manifests' dir
 | |
| rm -rf manifests
 | |
| mkdir -p manifests/setup
 | |
| 
 | |
|                                                # optional, but we would like to generate yaml, not json
 | |
| jsonnet -J vendor -m manifests "${1-example.jsonnet}" | xargs -I{} sh -c 'cat {} | gojsontoyaml > {}.yaml; rm -f {}' -- {}
 | |
| 
 |