-
Notifications
You must be signed in to change notification settings - Fork 411
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
controller-gen crd generation does not work across modules layouts #516
Comments
Update on duplicated schema |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Rotten issues close after 30d of inactivity. Send feedback to sig-contributor-experience at kubernetes/community. |
@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 am currently bit by this as well. Has anyone encountered a solution in the wild? |
I found a work-around, but it has its own issues. |
I filed a PR to fix this issue -- #663. |
/assign akutz |
This has been fixed with #663. |
The operator-sdk documentation lays out an operator go project with
api
in the root directory. It also creates a Makefile with the rulemake manifests
defined asso relying on controller-gen for generation of the operator CRDs.
While migrating an operator project to using this CRD generation, there exists an issue with apis that have been modularized, ie. api directory with their own mod.go file.
I've created a repository demonstrating the problem using the memcached-operator example.
For this to compile correctly, the v1 package had to be imported into the v1alpha1 api. This happened to require the api be modularized. Maybe, this is unnecessary for solving the import problem but is required anyway for making available the api as a module in its own right.
Issues:
make manifests
fails to generate any CRDs due to thecontroller-gen
command;The text was updated successfully, but these errors were encountered: