namespace resolution must work the same across callers (#906)
This commit is contained in:
@@ -83,7 +83,7 @@ public class KubernetesConfigServerAutoConfiguration {
|
||||
List<String> namespaces = namespaceSplitter(properties.getSecretsNamespaces(), namespace);
|
||||
List<MapPropertySource> propertySources = new ArrayList<>();
|
||||
namespaces.forEach(space -> propertySources.add(new KubernetesClientSecretsPropertySource(coreApi,
|
||||
applicationName, space, springEnv, new HashMap<>(), false)));
|
||||
applicationName, space, new HashMap<>(), false)));
|
||||
return propertySources;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ class KubernetesEnvironmentRepositoryTests {
|
||||
kubernetesPropertySourceSuppliers.add((coreApi, applicationName, namespace, springEnv) -> {
|
||||
List<MapPropertySource> propertySources = new ArrayList<>();
|
||||
propertySources.add(new KubernetesClientSecretsPropertySource(coreApi, applicationName, "default",
|
||||
springEnv, new HashMap<>(), false));
|
||||
new HashMap<>(), false));
|
||||
return propertySources;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user