-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Strange *FluentImpl generation behavior #2916
Comments
I'm wondering if this behaviour is due to some bug/misconfiguration in sundrio |
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions! |
Addressed by sundrio/sundrio#374 and sundrio/sundrio#350 We can mark this as resolved once we get a new sundrio release. |
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions! |
Hi,
while working on #2872 I noticed a strange behavior. When serializing an EventListener, one field is not included for some cases.
The field in question is
.spec.resources.customResource
. You should be able to include any K8s entity there, the example shows a Knative Service.In the model generator, I mapped this to
io.fabric8.kubernetes.api.model.HasMetadata
. The generated class looks good to me:The generated FluentImpl however has some strange logic within
withCustomResource
which I don´t understand.If I see it correctly, this will drop customResources when it´s not one of the explicitly included classes (TriggerTemplate, TriggerBinding, ...). As a consequence, in my Knative Service example the information is lost.
I hope that does make sense, let me know if you need more information!
Thanks, Fabian
The text was updated successfully, but these errors were encountered: