source-controller/internal/controller
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
..
testdata oci: add tests for insecure cosign support; refactor test utils 2023-07-31 13:50:18 +05:30
artifact.go Move controllers to internal/controller 2023-05-03 15:35:45 +05:30
artifact_matchers_test.go Move controllers to internal/controller 2023-05-03 15:35:45 +05:30
artifact_test.go Move controllers to internal/controller 2023-05-03 15:35:45 +05:30
bucket_controller.go bucket: Add prefix filtering capability 2023-10-17 14:13:04 +03:00
bucket_controller_fetch_test.go bucket: Add prefix filtering capability 2023-10-17 14:13:04 +03:00
bucket_controller_test.go Update dependencies to Kubernetes 1.28 2023-11-20 16:50:44 +02:00
common_test.go Move controllers to internal/controller 2023-05-03 15:35:45 +05:30
gitrepository_controller.go misc: address `k8s.io/utils/pointer` deprecation 2023-10-10 09:40:37 +02:00
gitrepository_controller_fuzz_test.go update dependencies and switch to `go-git/go-git` 2023-05-26 13:46:48 +05:30
gitrepository_controller_test.go Update dependencies to Kubernetes 1.28 2023-11-20 16:50:44 +02:00
helmchart_controller.go Static helmrepository OCI 2023-11-22 21:05:51 +05:30
helmchart_controller_test.go Static helmrepository OCI 2023-11-22 21:05:51 +05:30
helmrepository_controller.go Static helmrepository OCI 2023-11-22 21:05:51 +05:30
helmrepository_controller_test.go Static helmrepository OCI 2023-11-22 21:05:51 +05:30
ocirepository_controller.go cosign: allow identity matching for keyless verification 2023-10-31 08:04:34 -07:00
ocirepository_controller_test.go Update dependencies to Kubernetes 1.28 2023-11-20 16:50:44 +02:00
source_predicate.go Move controllers to internal/controller 2023-05-03 15:35:45 +05:30
storage.go storage: change default file permissions 2023-11-06 12:22:40 +01:00
storage_test.go update dependencies and switch to `go-git/go-git` 2023-05-26 13:46:48 +05:30
suite_test.go Static helmrepository OCI 2023-11-22 21:05:51 +05:30