This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user