-
Notifications
You must be signed in to change notification settings - Fork 431
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
Should respect +required #943
Comments
Hi @thockin, The project responsible for generate the CRDs and etc is the controller-tools: https://github.com/kubernetes-sigs/controller-tools So, can you please raise this issue against their repo? Also, see that you are using Thank you for your understanding. Cheers, |
Hi @thockin Also, see: kubernetes-sigs/kubebuilder#3794 |
I am confused. I don't see The point is that the cited example, with omitempty, does NOT get marked as required, despite the Am I missing something? |
Maybe to clarify - this is a tag used in kubernetes/api, which is being referenced by other CRDs. We don't want to use kubebuilder tags in k/k when we have "simple" equivalents. |
agree this should be re-opened, so that kubebuilder can generate correct CRDs that embed built-in kubernetes go types |
/reopen |
|
/reopen |
@liggitt: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Agree, we should support +required. Just like we already support +optional |
What do you want to happen?
Generating CRD from a field defined as:
...should be determined as "required" and not optional. It's a little wonky, but context is kubernetes/kubernetes#124553 (comment) and kubernetes/kubernetes#124553 (comment)
Extra Labels
No response
The text was updated successfully, but these errors were encountered: