-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Close fabric8 client #1773
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
Close fabric8 client #1773
Conversation
Configure Renovate
|
First thing was for me to reproduce this one locally, which I did. The 502 Bad Gateway was really coming from ingress, it could not connect to the underlying Spring app that we were running for the test. The test we have in place goes like this:
I simplified the test for myself a bit, so that I would not run in k3s, but connect to my local running cluster. This way I could debug the application far easier. This did not help much :) but I noticed something interesting: when I issue a From here, it was easy, implement |
|
@ryanjbaxter fixes the main build failure |
| return new Fabric8PodUtils(client); | ||
| } | ||
|
|
||
| @PreDestroy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just add @Bean(destroyMethod = "close") to the KubernetesClient bean above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing that didn't work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey, sorry, it worked partially. It did not work when we use config data api and register this bean via ConfigurableBootstrapContext. Your idea is much nicer and more correct then mine, its just that I don't know how to register the same destroyMethod in this case, but I'm reading the code a bit. Let me see if I find a way to do it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eh no, it did not work :( I don't know why though... may be we can push this fix, and if I figure out your suggestion, amend it later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I read the documentation of destroyMethod on a @Bean, we should not even have to add it explicitly and it must work, but my tests, and pipeline failures, show that its not really the case.
|
I took another pass for a few hours today in the morning to see if I understand why your suggesting does not work, and I did not succeeded. I am still curious what is going on, but as long as we have a solution in place, I think we are good. wdyt? |
|
actually this should go into |
No description provided.