Skip to content
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

embedded metadata schema in CRD is not generated #1730

Closed
captainroy-hy opened this issue May 29, 2021 · 2 comments · Fixed by #2215
Closed

embedded metadata schema in CRD is not generated #1730

captainroy-hy opened this issue May 29, 2021 · 2 comments · Fixed by #2215
Labels
priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough interest in it. type/enhancement New feature or request

Comments

@captainroy-hy
Copy link
Collaborator

captainroy-hy commented May 29, 2021

appRevision.Spec.Application use Application as field type., because of the upstream issue kubernetes-sigs/controller-tools#448, embedded metadata schema cannot be generated. Same issue happens to CompDef,TraitDef used in AppRevision.
That results in the resources(App,CompDefiniton,TraitDefinition) stored in appRevision has no metadata.

Is it by design to omit metadata of these resources?
If not and require to fix. Noticing the upstream issue has been fixed and merged kubernetes-sigs/controller-tools#557 recently, maybe we can consider upgrading controller-gen from v0.2.4 to v0.6.0-beta.0

/cc @wonderflow @yangsoon

@captainroy-hy
Copy link
Collaborator Author

After discussion with @wonderflow. Upgrading dependency is too heavy now. As a workaround, currently we can get app's lables/annots from appRevision.Spec.ApplicationConfiguration.

@wonderflow
Copy link
Collaborator

We should still keep the issue open, until we finally upgrade the dependency.

@wonderflow wonderflow reopened this May 30, 2021
@wonderflow wonderflow changed the title [Bug] embedded metadata schema in CRD is not generated embedded metadata schema in CRD is not generated Jun 4, 2021
@wonderflow wonderflow added type/enhancement New feature or request priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough interest in it. labels Jun 4, 2021
zzxwill added a commit to zzxwill/terraform-controller that referenced this issue Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough interest in it. type/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants