Skip to content

Commit

Permalink
Update printing for ignored service pods.
Browse files Browse the repository at this point in the history
  • Loading branch information
EraYaN committed Jan 8, 2024
1 parent 18a31f8 commit e031d22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/waitables.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func (w *Waitables) getStatusTreeString() string {
branch := namespace_branches[ns]
for n, val := range nsitems {
status := "Unavailable"
if val.IsAvailable() {
if (!w.onlyOnePerServiceRequired && val.IsAvailable()) || (w.onlyOnePerServiceRequired && val.IsAtLeastOneAvailable()) {
status = "Available"
}
svc_branch := branch.AddMetaBranch(TreeStatusUnknown, fmt.Sprintf("service/%s: %s", n, status))
Expand All @@ -189,6 +189,9 @@ func (w *Waitables) getStatusTreeString() string {
if pod.IsReady() {
status = "Ready"
meta = TreeStatusDone
} else if w.onlyOnePerServiceRequired {
status = "Ignored"
meta = TreeStatusIgnored
}
svc_branch.AddMetaNode(meta, fmt.Sprintf("pod/%s: %s", podname, status))
}
Expand Down

0 comments on commit e031d22

Please sign in to comment.