-
Notifications
You must be signed in to change notification settings - Fork 218
sourcev1: align CRD validation with v1beta2 #1944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
sourcev1: align CRD validation with v1beta2 #1944
Conversation
matheuscscp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
|
Setting defaults for optional values will cause drift and etcd mutation, also all the CLI tests will fail as we don't expect for optional values to come back from etcd if they are not in the desired state. |
|
Thanks Stefan! I am on it! |
1a445f9 to
f2508bd
Compare
|
Thanks for the feedback. I’ve removed the defaults from the optional fields in GitRepository and HelmRepository and regenerated the CRDs, so this PR now only adds the HelmChart XValidation. Testing:
|
f2508bd to
1d52fa7
Compare
|
I also fixed the missing DCO signing for my commits. |
|
Also squash please 🙏 |
Signed-off-by: kthurman59 <[email protected]>
1d52fa7 to
4646ca6
Compare
|
Squashed!! |
Summary
Align source.toolkit.fluxcd.io/v1 CRD validation with the existing v1beta2 behavior and documentation.
Changes
HelmChart
No controller logic changes, only schema-level validation so invalid specs fail at admission instead of at reconciliation.
Testing
On an Ubuntu VM: