namespace resolution must work the same across callers (#906)

This commit is contained in:
erabii
2021-11-10 15:22:25 -05:00
committed by GitHub
parent 14729f3c72
commit b41dcc146e
15 changed files with 285 additions and 145 deletions

View File

@@ -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;
};
}

View File

@@ -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;
});
}