mirror of https://github.com/k3s-io/k3s
Remove apparently dead code from Azure scripts.
parent
800739aadd
commit
9b31a76651
|
@ -256,20 +256,6 @@ function get-password {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Generate authentication token for admin user. Will
|
|
||||||
# read from $HOME/.kubernetes_auth if available.
|
|
||||||
#
|
|
||||||
# Vars set:
|
|
||||||
# KUBE_ADMIN_TOKEN
|
|
||||||
function get-admin-token {
|
|
||||||
local file="$HOME/.kubernetes_auth"
|
|
||||||
if [[ -r "$file" ]]; then
|
|
||||||
KUBE_ADMIN_TOKEN=$(cat "$file" | python -c 'import json,sys;print json.load(sys.stdin)["BearerToken"]')
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
KUBE_ADMIN_TOKEN=$(python -c 'import string,random; print "".join(random.SystemRandom().choice(string.ascii_letters + string.digits) for _ in range(32))')
|
|
||||||
}
|
|
||||||
|
|
||||||
# Instantiate a kubernetes cluster
|
# Instantiate a kubernetes cluster
|
||||||
#
|
#
|
||||||
# Assumed vars
|
# Assumed vars
|
||||||
|
|
Loading…
Reference in New Issue