-
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
Support generating Kustomize friendly annotation for CRDs #410
Comments
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing 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/test-infra repository. |
I think this is still a useful thing. Example: A CRD uses |
@MariusSchiffer: You can't reopen an issue/PR unless you authored it or you are a collaborator. 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. |
I don't get it. What is the concrete ask here? Can you give an example what exactly controller-gen could support here? |
controller-gen should add An example why this is useful is kustomize's Here is an example: kubernetes-sigs/kustomize#681 (comment) For another concrete example, elastic's cloud-on-k8s has CRDs which includes Definitions here: https://github.com/elastic/cloud-on-k8s/blob/main/pkg/apis/beat/v1beta1/beat_types.go#L96 They actually remove everything below I'm not sure if this is the best approach (I feel like there could be something more native-y than using a |
If I've read this correctly, you would need to re-ignite kubernetes/kubernetes#82942 and get this support into Kube as part of the CRD apiextensions-apiserver before changing anything in controller-tools. JSONSchemaProps relates to a Kubernetes API, it's not part of this repo, we cannot just change it, and expect it to work |
After some searching I found more on kustomize's side, so this has to be solved there: kubernetes-sigs/kustomize#3418 |
https://kubectl.docs.kubernetes.io/pages/examples/kustomize.html
The text was updated successfully, but these errors were encountered: