mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 20:50:24 +00:00
Fix bug in retry-forever usage.
- Push retry-forever wrapping to curl invocations. - Collect curl retry flags into a single variable. - Remove 'sudo: false' in master.yaml, is unnecessary and breaks older cloud-init versions. - Change log-error status reason to be more accurate. - Fix the some 'python' invocations to 'python3'.
This commit is contained in:
@@ -221,7 +221,7 @@ function get-kubeconfig-user-basicauth() {
|
||||
# KUBE_PASSWORD
|
||||
function gen-kube-basicauth() {
|
||||
KUBE_USER='admin'
|
||||
KUBE_PASSWORD=$(python -c 'import string,random; print("".join(random.SystemRandom().choice(string.ascii_letters + string.digits) for _ in range(16)))')
|
||||
KUBE_PASSWORD=$(python3 -c 'import string,random; print("".join(random.SystemRandom().choice(string.ascii_letters + string.digits) for _ in range(16)))')
|
||||
}
|
||||
|
||||
# Get the bearer token for the current-context in kubeconfig if one exists.
|
||||
|
Reference in New Issue
Block a user