Skip to content

Commit

Permalink
Add comment for constraint & data tracker, fix retErr nil comparison,
Browse files Browse the repository at this point in the history
and add unit tests
Fix comments and return error in trackConfigAndSyncSets. Add unit tests
for each track method & each wait in Run method.

Signed-off-by: David-Jaeyoon-Lee <[email protected]>
  • Loading branch information
David-Jaeyoon-Lee committed Apr 23, 2024
1 parent 7d63dbf commit ab0fdbb
Show file tree
Hide file tree
Showing 3 changed files with 832 additions and 58 deletions.
5 changes: 5 additions & 0 deletions pkg/readiness/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ func retryAll(_ error) bool {
return true
}

// retryNone is a retryPredicate that will never retry an error.
func retryNone(_ error) bool {
return false
}

// retryUnlessUnregistered is a retryPredicate that retries all errors except
// *NoResourceMatchError, *NoKindMatchError, e.g. a resource was not registered to
// the RESTMapper.
Expand Down
Loading

0 comments on commit ab0fdbb

Please sign in to comment.