feat: Add support for --wait-retries flag. (#1922)

* feat: Add support for --wait-retries flag.

This change wires up waitRetries option to set the helm --wait-retries flag.

--wait-retries was added in helm 3.15.0 and makes waiting more robust to registry errors.
https://github.com/helm/helm/commit/fc74964
https://github.com/helm/helm/releases/tag/v3.15.0

Resolves #1522

Signed-off-by: Connor Hindley <connor.hindley@tanium.com>
This commit is contained in:
Connor Hindley
2025-02-12 07:28:37 +08:00
committed by GitHub
parent 8169595b95
commit 2c38611acd
10 changed files with 125 additions and 9 deletions
+3
View File
@@ -195,6 +195,8 @@ helmDefaults:
keyring: path/to/keyring.gpg
# wait for k8s resources via --wait. (default false)
wait: true
# if set and --wait enabled, will retry any failed check on resource state subject to the specified number of retries (default 0)
waitRetries: 3
# if set and --wait enabled, will wait until all Jobs have been completed before marking the release as successful. It will wait for as long as --timeout (default false, Implemented in Helm3.5)
waitForJobs: true
# time in seconds to wait for any individual Kubernetes operation (like Jobs for hooks, and waits on pod/pvc/svc/deployment readiness) (default 300)
@@ -312,6 +314,7 @@ releases:
verify: true
keyring: path/to/keyring.gpg
wait: true
waitRetries: 3
waitForJobs: true
timeout: 60
recreatePods: true