Skip to content

Commit 181f125

Browse files
committed
catch unknown kstatus value
1 parent cc55694 commit 181f125

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

applylib/applyset/health.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@ func isHealthy(u *unstructured.Unstructured) bool {
4242
case status.UnknownStatus:
4343
klog.Warningf("unknown status for %s", humanName(u))
4444
return false
45-
default: // status.CurrentStatus:
45+
case status.CurrentStatus:
4646
return true
47+
default:
48+
klog.Warningf("unknown status value %s", result.Status)
49+
return false
4750
}
4851
}
4952

0 commit comments

Comments
 (0)