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
@SchemaSwap can only be used once #4350
Comments
Hi @xRodney !
Please! Be my guest! Just let me know if, for any reason, you have to drop this effort so that I put this back on my long-term Feel free to ask any questions and/or support! |
@SchemaSwap is now repeatable, so multiple modifications can be applied from the same resource root. Fixed a bug when the swap was "used up" after just one usage, meaning that if the referenced type was used multiple times in object hierarchy, only the first one was swapped. Fixes fabric8io#4350
@SchemaSwap is now repeatable, so multiple modifications can be applied from the same resource root. Fixed a bug when the swap was "used up" after just one usage, meaning that if the referenced type was used multiple times in object hierarchy, only the first one was swapped. Fixes fabric8io#4350
@SchemaSwap is now repeatable, so multiple modifications can be applied from the same resource root. Fixed a bug when the swap was "used up" after just one usage, meaning that if the referenced type was used multiple times in object hierarchy, only the first one was swapped. Fixes fabric8io#4350
@SchemaSwap is now repeatable, so multiple modifications can be applied from the same resource root. Fixed a bug when the swap was "used up" after just one usage, meaning that if the referenced type was used multiple times in object hierarchy, only the first one was swapped. Fixes fabric8io#4350
@SchemaSwap is now repeatable, so multiple modifications can be applied from the same resource root. Fixed a bug when the swap was "used up" after just one usage, meaning that if the referenced type was used multiple times in object hierarchy, only the first one was swapped. Fixes fabric8io#4350
@SchemaSwap is now repeatable, so multiple modifications can be applied from the same resource root. Fixed a bug when the swap was "used up" after just one usage, meaning that if the referenced type was used multiple times in object hierarchy, only the first one was swapped. Fixes fabric8io#4350
@SchemaSwap is now repeatable, so multiple modifications can be applied from the same resource root. Fixed a bug when the swap was "used up" after just one usage, meaning that if the referenced type was used multiple times in object hierarchy, only the first one was swapped. Fixes #4350 Co-authored-by: Dusan Jakub <dusan.jakub@ysoft.com> Co-authored-by: Andrea Peruffo <andrea.peruffo1982@gmail.com>
Describe the bug
In the documentation, it is written that it is "Same as SchemaFrom, but can be applied at any point in the class hierarchy"
I also found in this PR: "The annotation serves to enable the use-case where you want to generate a valid CRD from a model that you don't own.". The PR references keycloak operator as an example of such model.
I believe I have a similar-enough use case:
I am led to believe that @SchemaSwap is the way how to achieve the same result without editing external code.
For each @SchemaFrom I would like to have on a field of some class I do not own, I would instead put one @SchemaSwap on the root level.
There are two problems with this:
Fabric8 Kubernetes Client version
5.12.3
Steps to reproduce
Generate CRD for this schema:
It generates:
Expected behavior
I want all three replacements in my example to happen.
Runtime
other (please specify in additional context)
Kubernetes API Server version
other (please specify in additional context)
Environment
other (please specify in additional context)
Fabric8 Kubernetes Client Logs
No response
Additional context
I believe these are bugs, rather than limitations by design, and judging from the code, they should not be hard to fix. I may attempt a PR if you agree.
Or am I using them wrong?
Thanks for advice and for a great library!
The text was updated successfully, but these errors were encountered: