-
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
Fix 1338 main #1344
Fix 1338 main #1344
Conversation
Configure Renovate
@@ -43,13 +43,14 @@ public ConfigData load(ConfigDataLoaderContext context, KubernetesConfigDataReso | |||
ConfigurableBootstrapContext bootstrapContext = context.getBootstrapContext(); | |||
Environment env = resource.getEnvironment(); | |||
|
|||
if (bootstrapContext.isRegistered(ConfigMapPropertySourceLocator.class)) { |
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.
this is an interesting change right here. For config data, we need to provide the sources in the order we want, looks like @Order
is not respected. The documentation of ConfigData
constructor is a bit interesting:
propertySources - the config data property sources in ascending priority order.
I assume it means we need to provide the proper order to it, but it accepts a Collection
as input; which can be a Set
, for example... which has no order. I would have expected a List here; but then again a LinkedHashSet
is ordered too, tricky!
Sequenced collections would be a great addition to these kind of APIs.
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.
This is the only important change, everything else are just tests. I had to adjust them a little, cause in the main
branch - we have two types of tests : bootstrap and config data. Functionally, the tests have not changed at all.
@ryanjbaxter ready. fixes the current build + add some config data tests for the issues we did yesterday on the |
Thanks! |
No description provided.