-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Generate CRD specs, bump to v1beta2 #578
Conversation
Please rebase. I will need to cut a final release for |
Might be a good time to consider finalizing this PR |
Can you rebase this? |
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.
Just realized that we also need to update the Helm Chart to include the generated CRDs once we cut a release for the new v1beta2
version since the chart relies the current CRD self-registration.
@khogeland have you been running this version in production? |
We haven't, it seems too far-reaching (i.e. too likely to turn into a merge conflict nightmare) to maintain in an internal fork. |
All right. Please fix the remaining typo and I will merge this. |
Any more commits coming? If no, will merge soon. |
Nope, that should be the last of them. |
* Generate CRD specs, bump to v1beta2 * Add short/singular CRD names * Merge upstream/master * Tweak Cores validation * Fix typo, merge upstream * Update remaining docs for v1beta2
The current, manually-defined CRD validation is really unsafe, which we just learned of due to an outage:
This PR replaces the manually written CRD specs with ones generated by the controller-gen tool (part of Kubebuilder). It also gets rid of CRD self-registration, because there is no CRD Go code generated (I explored bundling the generated YAML, but it would be a hack and doesn't seem that useful).
Also bumped the version because this is a backwards-incompatible change:
Cores
field fromfloat32
toint32
, because Spark parses it as an integer, and controller-gen doesn't support floatsExisting validation has been migrated over, with the exception of the
metadata.name
field length, because I can't put annotations on a field from k8s. I'd like to figure out how to get that validation back, currently it'll fail at spark-submit.I'm pretty sure I missed a few things when bumping the version, and some docs are now out of date, so I'll clean that up asap. Sorry I'm dumping another large PR on you without warning!