Skip to content

Commit

Permalink
add node condition transition grace time
Browse files Browse the repository at this point in the history
  • Loading branch information
ReallyLiri committed Dec 9, 2021
1 parent ff6956e commit a868a03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/diag/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,10 @@ func (context *diagContext) nodeState(node *v1.Node, forceCheckResources bool) (
continue
}
}
sinceLastTransition := context.now.Sub(condition.LastTransitionTime.Time)
if sinceLastTransition < time.Minute {
continue
}
state.appendMessage(
condition.LastTransitionTime.Time,
"%v: %v (last transition: %v)",
Expand Down

0 comments on commit a868a03

Please sign in to comment.