Skip to content

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

Merged
matheuscscp merged 1 commit into
mainfrom
move-ocirepository-required-to-cel
Oct 5, 2026
Merged

matheuscscp merged 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

@stefanprodan stefanprodan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@matheuscscp
matheuscscp merged commit e47a59a into main Oct 5, 2026
6 checks passed
@matheuscscp
matheuscscp deleted the move-ocirepository-required-to-cel branch October 5, 2026 09:17
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.

2 participants