Unverified Commit 11a20c2c authored by gaoyan's avatar gaoyan Committed by GitHub

Fix k8s can not start up (#3135)

parent 86d205f8
...@@ -39,10 +39,21 @@ import lombok.extern.slf4j.Slf4j; ...@@ -39,10 +39,21 @@ import lombok.extern.slf4j.Slf4j;
@Slf4j @Slf4j
public class ResourceFileSystem extends FileSystem { public class ResourceFileSystem extends FileSystem {
private static final BaseResourceManager BASE_RESOURCE_MANAGER = BaseResourceManager.getInstance(); private final BaseResourceManager BASE_RESOURCE_MANAGER;
public static final URI URI_SCHEMA = URI.create("rs:/"); public static final URI URI_SCHEMA = URI.create("rs:/");
private static final ResourceFileSystem INSTANCE = new ResourceFileSystem(); private static ResourceFileSystem INSTANCE;
public static synchronized ResourceFileSystem getInstance() {
if (INSTANCE == null) {
INSTANCE = new ResourceFileSystem();
}
return INSTANCE;
}
public ResourceFileSystem() {
this.BASE_RESOURCE_MANAGER = BaseResourceManager.getInstance();
}
@Override @Override
public Path getWorkingDirectory() { public Path getWorkingDirectory() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment