Skip to content

Move OCIRepository required fields to CEL and remove defaults - #2177

Open
matheuscscp wants to merge 1 commit into
mainfrom
move-ocirepository-required-to-cel
Open

matheuscscp wants to merge 1 commit into
mainfrom
move-ocirepository-required-to-cel

Conversation

@matheuscscp

@matheuscscp matheuscscp commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Relax the .spec.url and .spec.interval fields of OCIRepositorySpec so that the type can be imported by other controllers without those fields being required. Keep the admission behavior by enforcing the presence of these fields with CEL validation rules on the top-level OCIRepository object. Remove CRD schema defaults to match the Flux convention of not introducing optional fields with defaults to avoid issues with SSA (most of the OCIRepositorySpec fields will be introduced under HelmRelease).

Needed for: fluxcd/helm-controller#1594

@matheuscscp matheuscscp added the area/api API related issues and pull requests label Oct 1, 2026
@matheuscscp
matheuscscp force-pushed the move-ocirepository-required-to-cel branch 3 times, most recently from 911e967 to 0032aca Compare October 3, 2026 21:40
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
@matheuscscp
matheuscscp force-pushed the move-ocirepository-required-to-cel branch from 0032aca to 45cec61 Compare October 3, 2026 21:51
@matheuscscp matheuscscp changed the title Move OCIRepository required fields to CEL Move OCIRepository required fields to CEL and remove defaults Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api API related issues and pull requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant