Skip to content

Commit 45632f6

Browse files
committed
test
Signed-off-by: wind57 <[email protected]>
1 parent 99f51b6 commit 45632f6

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,9 @@ public PropertySource<?> locate(Environment environment) {
8989

9090
if (this.properties.enableApi()) {
9191
uniqueSources.forEach(s -> {
92-
9392
MapPropertySource propertySource = getSecretsPropertySourceForSingleSecret(env, s);
94-
95-
if (propertySource.getPropertyNames().length == 0) {
96-
LOG.debug("Skipping empty secret property source source " + propertySource.getName());
97-
}
98-
else {
99-
LOG.debug("Adding secret property source " + propertySource.getName());
100-
composite.addPropertySource(propertySource);
101-
}
93+
LOG.debug("Adding secret property source " + propertySource.getName());
94+
composite.addPropertySource(propertySource);
10295
});
10396
}
10497

0 commit comments

Comments
 (0)