-
Notifications
You must be signed in to change notification settings - Fork 1k
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
No qualifying bean of type KubernetesDiscoveryProperties when using spring-cloud-starter-bootstrap #1278
Comments
I'm looking at this one, will update as soon as I understand what is going on. |
I can reproduce this one with an integration test in our own test-suite, seems to be related to bootstrap somehow. Still have to do some digging, but the sample was very helpful... |
this is a bug that resulted by accident from this fix. Unfortunately, we had no integration test around it, so that it would be caught. It's also not trivial to spot just by looking at the code either, so it totally slipped under the radar for me :( . I will fix it. @ryanjbaxter can you add a bug label here please? |
Sure. Would the workaround for now be to create your own auto configuration for bootstrap which contains a bean for |
OK, so finally, after a few good hours, I am able to present my case. In its fairness, this issue already existed event before I made my change in the fix that went into If we modify your sample with two changes:
You are going to see that it stil fails, this time with a different dependency:
So the fact that this was not reported before is absolute luck :) I guess everyone was using the starter. I am not going to go into the details of why it does not fail with the The fix is trivial, and I already have a PR that fixes the issue... @ryanjbaxter yes, your suggestion should work btw. |
Thank you for the very quick response and PR. |
Describe the bug
With the recent release of Spring Cloud 2022.0.2 our application start fails with the following exception:
We are using
spring-cloud-starter-kubernetes-fabric8-all
withspring-cloud-starter-bootstrap
andspring-cloud-starter-config
with abootstrap.yaml
.This constellation worked up to version Spring Cloud 2022.0.1.
Sample
I published a minimal reproduction project here.
The text was updated successfully, but these errors were encountered: