untested bit of code
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s

This commit is contained in:
pierre geeraert
2026-09-13 16:46:33 +01:00
parent 3fbf333d3d
commit c8ceaab950
3 changed files with 23 additions and 0 deletions
+4
View File
@@ -89,6 +89,9 @@ def Check_server_supposed_XXX(expected_status,verbose=False):
replicas = deployment.replicas
display_list.append(replicas)
if verbose : print("replicas: "+str(replicas))
do_not_touch_until = deployment.do_not_touch_until
display_list.append(do_not_touch_until)
if verbose : print("do_not_touch_until: "+str(do_not_touch_until))
#Adding the whole object as well for future use
display_list.append(deployment)
deployments_list.append(display_list)
@@ -113,6 +116,7 @@ def retrieve_and_apply(verbose=False):
#check if the expected replica (server[2]) match the current replica of the deployment (server[3].actual_replica)
if server[3].actual_replica == server[2]:
if verbose : print("name: "+str(server[1])+" namespace: "+str(server[0])+" already UP")
#if server[3].do_not_touch_until is after now , do something
else:
echo = "Starting -> name: "+str(server[1])+" namespace: "+str(server[0])+" replicas: "+str(server[2])
output += str(echo)