Created
May 4, 2018 21:29
-
-
Save seaneagan/3c4d8878e395f8e43005bce5a392b141 to your computer and use it in GitHub Desktop.
armada wait helm test retry issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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