source-controller/config
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
..
crd Static helmrepository OCI 2023-11-22 21:05:51 +05:30
default Remove deprecated bases from default kustomization 2020-08-21 10:26:46 +03:00
manager Release v1.1.0 2023-08-23 15:59:00 +05:30
rbac Update controller-runtime (v0.15) and K8s (v1.27) 2023-05-24 09:05:42 +02:00
samples Promote GitRepository API to v1 2023-03-23 23:17:23 +02:00
testdata libgit2: Remove references to libgit2 from code 2022-12-12 15:34:28 +00:00