mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Check curl before use it
This check can help user figure out what's the issue during local cluster setup
This commit is contained in:
		@@ -25,6 +25,12 @@ kube::util::wait_for_url() {
 | 
			
		||||
  local times=${4:-10}
 | 
			
		||||
 | 
			
		||||
  local i
 | 
			
		||||
 | 
			
		||||
  which curl >/dev/null || {
 | 
			
		||||
    kube::log::usage "curl must be installed"
 | 
			
		||||
    exit 1
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  for i in $(seq 1 $times); do
 | 
			
		||||
    local out
 | 
			
		||||
    if out=$(curl -fs $url 2>/dev/null); then
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user