source-controller/controllers
Hidde Beydals 68947cfca6 controllers: resolve issue with gc on delete
When a delete of a resource is requested a `deletionTimestamp` is set
on the resource by the requester, this also results in a generation
change of the resource.

If the resource is under reconciliation while this timestamp is set, and
had not produced an artifact earlier on, this becomes a problem as the
artifact metadata is used to determine what should be garbage collected
on a deletion, resulting in stray files for resources that are no longer
present.

To resolve this for now, we always create a new artifact object for the
resource when `all==true` on the GC method call, and no longer rely on
the presence of the artifact object on the resource itself.
2020-09-09 13:41:56 +02:00
..
testdata controllers: test HelmRepository TLS auth 2020-04-17 10:41:24 +02:00
gitrepository_controller.go controllers: resolve issue with gc on delete 2020-09-09 13:41:56 +02:00
gitrepository_controller_test.go Switch to dedicated git and helm testserver pkgs 2020-08-18 12:11:29 +02:00
helmchart_controller.go controllers: resolve issue with gc on delete 2020-09-09 13:41:56 +02:00
helmchart_controller_test.go Support Helm charts from GitRepository sources 2020-08-31 16:21:53 +02:00
helmrepository_controller.go controllers: resolve issue with gc on delete 2020-09-09 13:41:56 +02:00
helmrepository_controller_test.go Switch to dedicated git and helm testserver pkgs 2020-08-18 12:11:29 +02:00
predicate.go Refactor garbage collectors to finalizers 2020-07-16 14:18:33 +02:00
storage.go api/artifact: add checksum field to artifact 2020-09-09 13:41:56 +02:00
storage_test.go storage: only store relative path in artifact 2020-09-08 17:21:56 +02:00
suite_test.go Support Helm charts from GitRepository sources 2020-08-31 16:21:53 +02:00
util.go Refactor garbage collectors to finalizers 2020-07-16 14:18:33 +02:00