Skip to content

Commit eac933c

Browse files
authored
Merge pull request #329 from yuwenma/applyset-health
fix: catch unknown kstatus value
2 parents 4abaa68 + 181f125 commit eac933c

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)