source-controller/internal
Sunny cf3735e2a2 Static helmrepository OCI
Remove the HelmRepositoryOCI reconciler and make HelmRepository of type
OCI static. The existing HelmRepository OCI objects are migrated to
static object by removing their finalizers and status. New
HelmRepository OCI objects go through one time migration to remove the
status. These are not reconciled again, unless the type is changed to
default. On type switching from HelmRepository default to OCI, the
finalizer, status and artifact are removed to make the object static. On
switching from OCI to default, a complete reconciliation of
HelmRepository takes place to build artifact and add status and
finalizer.

The HelmRepository .spec.url has a new validation to check the URL
scheme. This is to add some validation to HelmRepository OCI since it's
not backed by a reconciler for full validation.

Add HelmRepositoryOCIMigrationPredicate predicate to detect and allow
reconciliation of HelmRepository OCI objects that need migration. The
other predicates that filtered the HelmRepository events based on the
type have been removed as all the HelmRepositories will now be
reconciled by a single reconciler. HelmRepositoryOCIMigrationPredicate
readily allows non-OCI objects and only checks if a migration is needed
for OCI type object.

Add controller tests for different migration scenarios.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2023-11-22 21:05:51 +05:30
..
cache Delete stale metrics on object delete 2023-08-15 02:35:35 +05:30
controller Static helmrepository OCI 2023-11-22 21:05:51 +05:30
digest digest: register SHA1 digest algorithm 2023-02-14 12:48:36 +01:00
error Remove event error 2023-09-15 17:41:43 +05:30
features gitrepo: remove `OptimizedGitClones` as a feature gate 2023-06-21 16:48:18 +05:30
fs test: use `T.TempDir` to create temporary test directory 2022-04-29 23:01:39 +08:00
helm helmrepo: only configure tls login option when required 2023-11-22 10:05:45 +05:30
index controllers: use digest for Bucket revision 2023-02-14 12:48:36 +01:00
mock misc: use `Err` prefix for errors 2023-10-09 14:59:58 +02:00
object Promote GitRepository API to v1 2023-03-23 23:17:23 +02:00
oci cosign: allow identity matching for keyless verification 2023-10-31 08:04:34 -07:00
predicates Static helmrepository OCI 2023-11-22 21:05:51 +05:30
reconcile misc: remove redundant nil check 2023-10-11 11:03:55 +02:00
tls helmrepo: fix Secret type check for TLS via `.spec.secretRef` 2023-09-06 00:27:45 +05:30
transport internal/helm/getter: remove transport reuse test 2022-06-14 09:25:52 +01:00
util Refactor internal OCI package 2022-09-20 18:34:02 +03:00