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

@@ -681,7 +681,7 @@ function kube-up {
ensure-iam-profiles
gen-kube-basicauth
load-or-gen-kube-basicauth
if [[ ! -f "$AWS_SSH_KEY" ]]; then
ssh-keygen -f "$AWS_SSH_KEY" -N ''