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:
Avritt Rohwer
2021-05-07 15:58:25 -07:00
parent 0c2d5b3490
commit 0a5a697882
5 changed files with 68 additions and 54 deletions

View File

@@ -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.