kubeslice / worker-operator

Kubeslice Worker Operator Opensource Repository: The KubeSlice Worker Operator is a Kubernetes operator that manages the lifecycle of KubeSlice worker clusters.
Apache License 2.0
59 stars 19 forks source link

fix(): fixed slicegw health status for single cluster #207

Closed gourishkb closed 1 year ago

gourishkb commented 1 year ago

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

NishantSingh10 commented 1 year ago

report link 'https://kubeslice.github.io/e2e-allure-reports/Kind-worker-operator-2023-04-01T14:04:02-release-guwahati-394/index.html'

NishantSingh10 commented 1 year ago

report link 'https://kubeslice.github.io/e2e-allure-reports/Kind-worker-operator-2023-04-01T16:48:11-release-guwahati-394/index.html'

gourishkb commented 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.