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
deepcopy-gen should have good support for existing APIs and not fail on difficult fields #264
Comments
so most of these are somewhat intentional, in that their presence and the lack of a manual deepcopy method probably indicate a malformed Kubernetes API object. The issue is mainly that go types serve as the IDL for Kubernetes, but no all Go types and constructs "exist" in the IDL. Skipping those fields might be fine for deepcopy (albeit pretty surprising), but what do we do for CRD generation? |
/kind feature |
(to be clear, I'm up for debate here, just laying out the existing thinking) |
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. |
/remove-lifecycle stale |
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. |
deepcopy-gen
should be able to run on an existing API codebase with as minimal changes possible and without failing or throwing errors. This means that it should work on structs who also haveand other types. It should ignore these fields happily and without issues so we can run
controller-gen object paths=./...
on an existing codebase and it should generate as much as possible, but not fail and only output warnings for fields, etc which are not supported.This would help achieve this high-level
kubebuilder
goal: kubernetes-sigs/kubebuilder#863The text was updated successfully, but these errors were encountered: