Skip to content
Snippets Groups Projects
Commit 65cd9898 authored by garciadeblas's avatar garciadeblas
Browse files

Increase timeout for cluster scale operation and use string comparison


Change-Id: I512177a4ae7be04bd52677a89861b4558478b76d
Signed-off-by: default avatargarciadeblas <gerardo.garciadeblas@telefonica.com>
parent c89134bf
No related branches found
No related tags found
No related merge requests found
Pipeline #18236 passed with warnings with stage
in 5 minutes and 42 seconds
......@@ -1286,7 +1286,7 @@ class ClusterLcm(GitOpsLcm):
"jsonpath_filter": "status.atProvider.defaultNodePool[0].nodeCount",
"value": f"{op_params['node_count']}",
},
"timeout": self._checkloop_resource_timeout * 2,
"timeout": self._checkloop_resource_timeout * 3,
"enable": True,
"resourceState": "IN_PROGRESS.RESOURCE_READY.NODE_COUNT.CLUSTER",
}
......
......@@ -148,7 +148,7 @@ async def readiness_loop(
jsonpath_expr = parse(condition["jsonpath_filter"])
match = jsonpath_expr.find(generic_object)
if match:
value = match[0].value
value = str(match[0].value)
condition_function = condition.get(
"function", lambda x, y: x == y
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment