Skip to content

Commit 977f324

Browse files
committed
fix
Signed-off-by: wind57 <[email protected]>
1 parent e31f779 commit 977f324

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/config/ConfigMapPropertySourceLocator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public PropertySource<?> locate(Environment environment) {
8585
sources.forEach(s -> {
8686
MapPropertySource propertySource = getMapPropertySource(s, env);
8787
LOG.debug("Adding config map property source " + propertySource.getName());
88-
composite.addPropertySource(propertySource);
88+
composite.addFirstPropertySource(propertySource);
8989
});
9090
}
9191

spring-cloud-kubernetes-commons/src/main/java/org/springframework/cloud/kubernetes/commons/config/SecretsPropertySourceLocator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public PropertySource<?> locate(Environment environment) {
9191
uniqueSources.forEach(s -> {
9292
MapPropertySource propertySource = getSecretsPropertySourceForSingleSecret(env, s);
9393
LOG.debug("Adding secret property source " + propertySource.getName());
94-
composite.addPropertySource(propertySource);
94+
composite.addFirstPropertySource(propertySource);
9595
});
9696
}
9797

0 commit comments

Comments
 (0)