Skip to content

Commit

Permalink
feat: make it easier to reason about health check failures
Browse files Browse the repository at this point in the history
Signed-off-by: Max Jonas Werner <mail@makk.es>
  • Loading branch information
Max Jonas Werner committed Jun 24, 2021
1 parent 57f6610 commit 5bb31e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controllers/kustomization_healthcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ func (hc *KustomizeHealthCheck) Assess(pollInterval time.Duration) error {
func(statusCollector *collector.ResourceStatusCollector, e event.Event) {
var rss []*event.ResourceStatus
for _, rs := range statusCollector.ResourceStatuses {
if rs.Error != nil {
coll.Error = rs.Error
cancel()
return
}
rss = append(rss, rs)
}
desired := status.CurrentStatus
Expand Down

0 comments on commit 5bb31e2

Please sign in to comment.