Skip to content

Commit

Permalink
Add dedicated reconcilers to the design docs
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <[email protected]>
  • Loading branch information
stefanprodan committed Apr 1, 2022
1 parent 2240dbe commit a6f33ad
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions rfcs/helm-oci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,18 @@ Bucket API design, where the same Kind servers different implementations: AWS S3

## Design Details

In source-controller we'll add a new predicate for indexing `HelmRepositories` based on the `spec.type` field.
In source-controller we'll add a new predicate for filtering `HelmRepositories` based on the `spec.type` field.

When the `spec.type` field is set to `OCI`, the `HelmRepositoryReconciler`
will set the `HelmRepository` Ready status to `False` if the URL is not prefixed with `oci://`,
otherwise the Ready status will be set to `True`.
The current `HelmRepositoryReconciler` will be renamed to `HelmRepositoryDefaultReconciler`,
it's scope remains unchanged, and it will handle only to objects with `type: Default`.

We'll introduce a new reconciler named `HelmRepositoryOCIReconciler`, that will handle
objects with `type: OCI`. This reconciler will set the `HelmRepository` Ready status to
`False` if the URL is not prefixed with `oci://`, otherwise the Ready status will be set to `True`.

The current `HelmChartReconciler` will be renamed to `HelmChartDefaultReconciler`,
it's scope remains unchanged, and it will handle only to objects with `type: Default`.

The current `HelmChartReconciler` will use the `HelmRepositories` with `type: Default`.
For `type: OCI` we'll introduce a new reconciler `HelmChartOCIReconciler` that uses `oras` to download charts
and their dependencies.

Expand Down

0 comments on commit a6f33ad

Please sign in to comment.