Don't fail on single resource status error

Relates to #301
This commit is contained in:
Andrei Pohilko
2023-03-24 17:39:29 +00:00
parent 8826124f70
commit 80022c3ef8
3 changed files with 13 additions and 7 deletions

View File

@@ -188,7 +188,9 @@ function showResources(namespace, chart, revision) {
const cond = res.status.conditions[k]
const badge = $("<span class='badge me-2 fw-normal'></span>").text(cond.reason);
if (cond.status === "Healthy") {
if (cond.status === "Unknown") {
badge.addClass("bg-secondary text-danger")
} else if (cond.status === "Healthy") {
badge.addClass("bg-success text-dark")
} else if (cond.status === "Progressing") {
badge.addClass("bg-warning")