mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #11794 from mikedanese/revert-revert
Revert revert of #11379
This commit is contained in:
		@@ -80,7 +80,9 @@ function create-kubeconfig() {
 | 
				
			|||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  "${kubectl}" config set-cluster "${CONTEXT}" "${cluster_args[@]}"
 | 
					  "${kubectl}" config set-cluster "${CONTEXT}" "${cluster_args[@]}"
 | 
				
			||||||
 | 
					  if [[ -n "${user_args[@]:-}" ]]; then
 | 
				
			||||||
    "${kubectl}" config set-credentials "${CONTEXT}" "${user_args[@]}"
 | 
					    "${kubectl}" config set-credentials "${CONTEXT}" "${user_args[@]}"
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
  "${kubectl}" config set-context "${CONTEXT}" --cluster="${CONTEXT}" --user="${CONTEXT}"
 | 
					  "${kubectl}" config set-context "${CONTEXT}" --cluster="${CONTEXT}" --user="${CONTEXT}"
 | 
				
			||||||
  "${kubectl}" config use-context "${CONTEXT}"  --cluster="${CONTEXT}"
 | 
					  "${kubectl}" config use-context "${CONTEXT}"  --cluster="${CONTEXT}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -200,7 +200,6 @@ function wait-cluster-readiness {
 | 
				
			|||||||
function kube-up {
 | 
					function kube-up {
 | 
				
			||||||
  detect-master
 | 
					  detect-master
 | 
				
			||||||
  detect-minions
 | 
					  detect-minions
 | 
				
			||||||
  get-password
 | 
					 | 
				
			||||||
  initialize-pool keep_base_image
 | 
					  initialize-pool keep_base_image
 | 
				
			||||||
  initialize-network
 | 
					  initialize-network
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -328,12 +327,6 @@ function test-teardown {
 | 
				
			|||||||
  kube-down
 | 
					  kube-down
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Set the {KUBE_USER} and {KUBE_PASSWORD} environment values required to interact with provider
 | 
					 | 
				
			||||||
function get-password {
 | 
					 | 
				
			||||||
  export KUBE_USER=''
 | 
					 | 
				
			||||||
  export KUBE_PASSWORD=''
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# SSH to a node by name or IP ($1) and run a command ($2).
 | 
					# SSH to a node by name or IP ($1) and run a command ($2).
 | 
				
			||||||
function ssh-to-node {
 | 
					function ssh-to-node {
 | 
				
			||||||
  local node="$1"
 | 
					  local node="$1"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user