mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 10:13:14 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			194 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			194 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package k8stest
 | |
| 
 | |
| import (
 | |
| 	"net/http"
 | |
| )
 | |
| 
 | |
| // checkKubernetesRunning performs a basic
 | |
| func CheckKubernetesRunning() bool {
 | |
| 	_, err := http.Get("http://localhost:8080/api/v1")
 | |
| 	return err == nil
 | |
| }
 |