source-controller/controllers
Hidde Beydals 49639638b9 Rewrite `HelmRepositoryReconciler` to new standards
This commit rewrites the `HelmRepositoryReconciler` to new standards,
while implementing the newly introduced Condition types, and trying to
adhere better to Kubernetes API conventions.

More specifically it introduces:

- Implementation of more explicit Condition types to highlight
  abnormalities.
- Extensive usage of the `conditions` subpackage from `runtime`.
- Better and more conflict-resilient (status)patching of reconciled
  objects using the `patch` subpackage from runtime.
- Proper implementation of kstatus' `Reconciling` and `Stalled`
  conditions.
- Refactoring of some Helm elements to make them easier to use within
  the new reconciler logic.
- Integration tests that solely rely on `testenv` and do not
  use Ginkgo.

There are a couple of TODOs marked in-code, these are suggestions for
the future and should be non-blocking.
In addition to the TODOs, more complex and/or edge-case test scenarios
may be added as well.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2021-08-12 11:47:56 +02:00
..
testdata Rewrite `GitRepositoryReconciler` to new standards 2021-07-30 19:36:32 +02:00
artifact.go Refactor `hasArtifactUpdated` into `artifactSet` 2021-07-30 12:55:57 +02:00
artifact_matchers_test.go Rewrite `BucketReconciler` to new standards 2021-08-10 22:11:04 +02:00
artifact_test.go Refactor `hasArtifactUpdated` into `artifactSet` 2021-07-30 12:55:57 +02:00
bucket_controller.go Wrap err with context instead of logging twice 2021-08-11 09:35:35 +02:00
bucket_controller_test.go BucketReconciler: Add reconcileArtifact tests 2021-08-10 22:15:06 +02:00
gitrepository_controller.go Wrap err with context instead of logging twice 2021-08-11 09:35:35 +02:00
gitrepository_controller_test.go chore: ensure Git server dir is removed after test 2021-08-11 10:44:02 +02:00
helmchart_controller.go Rewrite `HelmRepositoryReconciler` to new standards 2021-08-12 11:47:56 +02:00
helmchart_controller_test.go Implement new runtime interfaces, prepare testenv 2021-07-30 12:33:18 +02:00
helmrepository_controller.go Rewrite `HelmRepositoryReconciler` to new standards 2021-08-12 11:47:56 +02:00
helmrepository_controller_test.go Rewrite `HelmRepositoryReconciler` to new standards 2021-08-12 11:47:56 +02:00
legacy_suite_test.go Rewrite `HelmRepositoryReconciler` to new standards 2021-08-12 11:47:56 +02:00
source_predicate.go Upgrade controller-runtime to v0.7.0 2020-12-18 19:17:10 +01:00
storage.go storage: change Artifact checksum to SHA256 2021-08-10 10:30:06 +02:00
storage_test.go Drop deprecated `io/ioutil` 2021-07-29 09:58:00 +02:00
suite_test.go Rewrite `HelmRepositoryReconciler` to new standards 2021-08-12 11:47:56 +02:00