Cosmetics

This commit is contained in:
Andrei Pohilko
2022-11-08 14:37:48 +00:00
parent 2454fcf47c
commit dadf2d1bde
6 changed files with 23 additions and 22 deletions

View File

@@ -39,6 +39,7 @@ func (h *KubeHandler) GetResourceInfo(c *gin.Context) {
return
}
// custom logic to provide most meaningful status for the resource
if res.Status.Phase == "Active" || res.Status.Phase == "Error" {
_ = res.Name + ""
} else if res.Status.Phase == "" && len(res.Status.Conditions) > 0 {