Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
dyx1234 committed Sep 27, 2024
1 parent 435df9d commit e2c7cd7
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ public Config create(String namespace) {
configRepository = createPropertiesCompatibleFileConfigRepository(namespace, format);
} else {
configRepository = createConfigRepository(namespace);
//ServiceBootstrap.loadPrimary(ConfigRepository.class);
}

logger.debug("Created a configuration repository of type [{}] for namespace [{}]",
Expand Down Expand Up @@ -133,12 +132,6 @@ LocalFileConfigRepository createLocalConfigRepository(String namespace) {
* @return the newly created repository for the given namespace
*/
private ConfigRepository createConfigMapConfigRepository(String namespace) {
if (m_configUtil.isInKubernetesMode()) {
logger.warn(
"==== Apollo is in local mode! Won't pull configs from remote server for namespace {} ! ====",
namespace);
return new K8sConfigMapConfigRepository(namespace);
}
return new K8sConfigMapConfigRepository(namespace, createLocalConfigRepository(namespace));
}

Expand Down

0 comments on commit e2c7cd7

Please sign in to comment.