Skip to content

Commit

Permalink
fix: set status_reason as empty for healthy k8s topology
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra authored and moshloop committed Nov 20, 2023
1 parent 39543d6 commit 4fafc33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/k8s.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ k8s = {

if (k8s.conditions.isReady(pod)) {
_pod.status = "healthy"
_pod.status_reason = ""
} else {
_pod.status = "unhealthy"
_pod.status_reason = k8s.conditions.getMessage(pod)
Expand Down Expand Up @@ -348,6 +349,7 @@ k8s = {

if (k8s.conditions.isReady(node)) {
_node.status = "healthy"
_node.status_reason = ""
} else {
_node.status = "unhealthy"
_node.status_reason = k8s.conditions.getMessage(node)
Expand Down

0 comments on commit 4fafc33

Please sign in to comment.