source-controller/controllers
Sunny f4aed8baf8
OCIRepoReconciler: no-op reconcile improvements
Introduce contentConfigChecksum in the OCIRepository status to store a
checksum of the values that affect the source artifact. It is used to
detect when to rebuild an artifact when the spec changes.

The considerations for this are similar to the GitRepository
reconciler no-op clone implementation. Both reconcileSource and
reconcileArtifact need to consider the source configuration change
when deciding if the artifact in the storage is up-to-date.

Adds tests for reconcileSource and reconcileArtifact for the noop
cases.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-09-29 09:48:27 +03:00
..
testdata Add tests for reconcile delete 2022-08-02 13:11:08 +03:00
artifact.go Introduce `artifactSet` to replace `hasArtifactUpdated` 2022-02-23 12:35:30 +01:00
artifact_matchers_test.go Implement Size field on archived artifacts 2022-02-28 16:01:34 +01:00
artifact_test.go Introduce `artifactSet` to replace `hasArtifactUpdated` 2022-02-23 12:35:30 +01:00
bucket_controller.go controllers: Remove ctx overwrite 2022-09-04 18:56:02 +05:30
bucket_controller_fetch_test.go test: use `T.TempDir` to create temporary test directory 2022-04-29 23:01:39 +08:00
bucket_controller_test.go Log on new artifact and failure recovery 2022-06-03 15:58:19 +03:00
gitrepository_controller.go Use bipolarity option in gitrepo and ocirepo 2022-09-22 15:42:53 +05:30
gitrepository_controller_test.go gitrepo: update reconciler to be injected with transport initialization knowledge 2022-07-20 18:56:37 +05:30
helmchart_controller.go secretRef take precedence over provider 2022-09-09 14:43:35 +02:00
helmchart_controller_test.go secretRef take precedence over provider 2022-09-09 14:43:35 +02:00
helmrepository_controller.go controllers: Remove ctx overwrite 2022-09-04 18:56:02 +05:30
helmrepository_controller_oci.go Handle nil OCI authenticator with malformed registry 2022-09-13 19:53:41 +02:00
helmrepository_controller_oci_test.go Handle nil OCI authenticator with malformed registry 2022-09-13 19:53:41 +02:00
helmrepository_controller_test.go add custom CA certificates to system certificates 2022-09-23 10:57:00 +03:00
ocirepository_controller.go OCIRepoReconciler: no-op reconcile improvements 2022-09-29 09:48:27 +03:00
ocirepository_controller_test.go OCIRepoReconciler: no-op reconcile improvements 2022-09-29 09:48:27 +03:00
source_predicate.go Switch to v1beta2 API package 2022-02-23 12:35:25 +01:00
storage.go Use sourceignore from fluxcd/pkg 2022-08-17 18:04:48 +03:00
storage_test.go test: use `T.TempDir` to create temporary test directory 2022-04-29 23:01:39 +08:00
suite_test.go secretRef take precedence over provider 2022-09-09 14:43:35 +02:00