mirror of
				https://github.com/prometheus-operator/kube-prometheus.git
				synced 2025-11-04 10:01:03 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			308 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			308 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
DIR="crdschemas"
 | 
						|
 | 
						|
# Go to git repository root
 | 
						|
cd ./$(git rev-parse --show-cdup)
 | 
						|
 | 
						|
rm -rf "$DIR"
 | 
						|
mkdir "$DIR"
 | 
						|
 | 
						|
for crd in vendor/prometheus-operator/*-crd.json; do
 | 
						|
	jq '.spec.versions[0].schema.openAPIV3Schema' < "$crd" > "$DIR/$(basename "$crd" | sed 's/s-crd//;s/prometheuse/prometheus/')"
 | 
						|
done
 |