Load or generate auth from kubeconfig on kube-up

Allows loading existing auth from kubeconfig on kube-up if a
valid KUBE_CONTEXT is specified, instead of always force
regenerating auth (basic or token) when creating a new cluster.
This commit is contained in:
Jeff Lowdermilk
2015-10-26 10:38:53 -07:00
parent 887b9dd78a
commit de4f29f1f5
8 changed files with 51 additions and 45 deletions

View File

@@ -183,7 +183,7 @@ function wait-cluster-readiness {
function kube-up {
detect-master
detect-nodes
gen-kube-bearertoken
load-or-gen-kube-bearertoken
initialize-pool keep_base_image
initialize-network