|
|
|
@ -118,13 +118,13 @@ public class PolarisConfigFileLocator implements PropertySourceLocator {
|
|
|
|
|
|
|
|
|
|
public static ConfigKVFile loadConfigKVFile(ConfigFileService configFileService, String namespace, String group, String fileName) {
|
|
|
|
|
ConfigKVFile configKVFile;
|
|
|
|
|
// unknown extension is resolved as properties file
|
|
|
|
|
if (ConfigFileFormat.isPropertyFile(fileName) || ConfigFileFormat.isUnknownFile(fileName)) {
|
|
|
|
|
configKVFile = configFileService.getConfigPropertiesFile(namespace, group, fileName);
|
|
|
|
|
}
|
|
|
|
|
else if (ConfigFileFormat.isYamlFile(fileName)) {
|
|
|
|
|
// unknown extension is resolved as yaml file
|
|
|
|
|
if (ConfigFileFormat.isYamlFile(fileName) || ConfigFileFormat.isUnknownFile(fileName)) {
|
|
|
|
|
configKVFile = configFileService.getConfigYamlFile(namespace, group, fileName);
|
|
|
|
|
}
|
|
|
|
|
else if (ConfigFileFormat.isPropertyFile(fileName)) {
|
|
|
|
|
configKVFile = configFileService.getConfigPropertiesFile(namespace, group, fileName);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
LOGGER.warn("[SCT Config] Unsupported config file. namespace = {}, group = {}, fileName = {}", namespace, group, fileName);
|
|
|
|
|
|
|
|
|
|