source-controller/controllers
Sunny ea45903dd4 gitrepo: Ignore patch error not found on delete
While deleting, patching an object with new status results in "not
found" error because the object is already deleted. The patching
operation first patches the status conditions, the rest of the object
and, at the very end, the rest of the status. When an object is
deleted, the garbage collection results in the artifact in the status
to be updated, resulting in a diff that is attempted to be patched
when the deferred patch runs.
Since the status patching runs at the very end, the object gets deleted
before it can be patched.
Ignore "not found" error while patching when the delete timestamp is
set.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
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 gitrepo: Ignore patch error not found on delete 2022-02-15 15:42:18 +05:30
gitrepository_controller_test.go gitrepo: Fix SourceVerifiedCondition condition type 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