Closed gourishkb closed 1 year ago
https://kubeslice.github.io/e2e-allure-reports/Kind-worker-operator-2023-04-01T16:48:11-release-guwahati-394/index.html tests has AfterAll suite and other tests failing are seen without this PR change as well as observed here https://github.com/kubeslice/kubeslice-e2e-automation/actions/runs/4589005770/jobs/8103599087. So merging this PR.
For a single cluster, sliceGW pods are missing. We need to handle component health status for two cases 1. single cluster 2. multiple cluster
case 1: we check if sliceGW deployment is present, expected no slicegw deployments hence, mark healthystate
case 2: we check if sliceGW deployment is present, expected 1 slicegw deployment, hence, list all pods and check if all are in Running state else mark as unhealthyState