mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 05:01:46 +00:00
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:
@@ -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 ''
|
||||
|
Reference in New Issue
Block a user