source-controller/controllers
Hidde Beydals bb9f972e70 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>
2022-02-15 15:42:18 +05:30
..
testdata Rewrite `GitRepositoryReconciler` to new standards 2022-02-15 15:42:14 +05:30
artifact.go Introduce `artifactSet` to replace `hasArtifactUpdated` 2022-02-15 15:40:57 +05:30
artifact_matchers_test.go Add gomega matcher for artifact 2022-02-15 15:40:57 +05:30
artifact_test.go Introduce `artifactSet` to replace `hasArtifactUpdated` 2022-02-15 15:40:57 +05:30
bucket_controller.go Implement new runtime interfaces, prepare testenv 2022-02-15 15:40:57 +05:30
bucket_controller_test.go Drop deprecated `io/ioutil` 2021-07-29 09:58:00 +02:00
gitrepository_controller.go source: `GetRequeueAfter` in place of `GetInterval` 2022-02-15 15:42:18 +05:30
gitrepository_controller_test.go Replace %q in messages with '%s' 2022-02-15 15:42:18 +05:30
helmchart_controller.go Implement new runtime interfaces, prepare testenv 2022-02-15 15:40:57 +05:30
helmchart_controller_test.go Implement new runtime interfaces, prepare testenv 2022-02-15 15:40:57 +05:30
helmrepository_controller.go Implement new runtime interfaces, prepare testenv 2022-02-15 15:40:57 +05:30
helmrepository_controller_test.go Implement new runtime interfaces, prepare testenv 2022-02-15 15:40:57 +05:30
legacy_suite_test.go Rewrite `GitRepositoryReconciler` to new standards 2022-02-15 15:42:14 +05:30
source_predicate.go Switch to v1beta2 API package 2022-02-15 15:40:57 +05:30
storage.go Implement new runtime interfaces, prepare testenv 2022-02-15 15:40:57 +05:30
storage_test.go Switch to v1beta2 API package 2022-02-15 15:40:57 +05:30
suite_test.go Rewrite `GitRepositoryReconciler` to new standards 2022-02-15 15:42:14 +05:30