mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 12:18:16 +00:00 
			
		
		
		
	Merge pull request #82947 from notpad/master
Replace hyperkube with apiserver for binary path guess
This commit is contained in:
		@@ -155,12 +155,12 @@ function usage {
 | 
				
			|||||||
# This function guesses where the existing cached binary build is for the `-O`
 | 
					# This function guesses where the existing cached binary build is for the `-O`
 | 
				
			||||||
# flag
 | 
					# flag
 | 
				
			||||||
function guess_built_binary_path {
 | 
					function guess_built_binary_path {
 | 
				
			||||||
  local hyperkube_path
 | 
					  local apiserver_path
 | 
				
			||||||
  hyperkube_path=$(kube::util::find-binary "hyperkube")
 | 
					  apiserver_path=$(kube::util::find-binary "kube-apiserver")
 | 
				
			||||||
  if [[ -z "${hyperkube_path}" ]]; then
 | 
					  if [[ -z "${apiserver_path}" ]]; then
 | 
				
			||||||
    return
 | 
					    return
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
  echo -n "$(dirname "${hyperkube_path}")"
 | 
					  echo -n "$(dirname "${apiserver_path}")"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Allow user to supply the source directory.
 | 
					### Allow user to supply the source directory.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user