Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save seaneagan/3c4d8878e395f8e43005bce5a392b141 to your computer and use it in GitHub Desktop.
Save seaneagan/3c4d8878e395f8e43005bce5a392b141 to your computer and use it in GitHub Desktop.
armada wait helm test retry issue
def apply_chart(wait, wait_timeout, test, max_test_tries, test_timeout, test_interval):
success = False
if wait:
helm install/upgrade --wait --timeout <wait_timeout> ...
success = <succeeded?>
else:
helm install/upgrade ...
if test:
test_tries := 0
while test_tries++ < max_test_tries
if test_tries > 0: sleep test_interval
helm test --timeout test_timeout
if <test succeeded>:
success = True
break
if !success:
throw ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment