source-controller/api
Hidde Beydals a1ed1fc4b4 source: `GetRequeueAfter` in place of `GetInterval`
The problem with `GetInterval()` was that the returned type was of
`metav1.Duration`, while almost anywhere it was used, a type of
`time.Duration` was requested. The result of this was that we had to
call `GetInterval().Duration` all the time, which would become a bit
cumbersome after awhile.

To prevent this, we introduce a new `GetRequeueAfter() time.Duration`
method, which both results the right type, and bears a name that is
easier to remember where the value is used most; while setting the
`Result.RequeueAfter` during reconcile operations.

The introduced of this method deprecates `GetInterval()`, which should
be removed in a future MINOR release.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-08-03 13:36:12 +02:00
..
v1beta1 source: `GetRequeueAfter` in place of `GetInterval` 2021-08-03 13:36:12 +02:00
go.mod Implement new runtime interfaces, prepare testenv 2021-07-30 12:33:18 +02:00
go.sum Implement new runtime interfaces, prepare testenv 2021-07-30 12:33:18 +02:00