Skip to content

Commit

Permalink
Fix k8s can not start up
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyan1998 committed Feb 2, 2024
1 parent 11957fb commit 19734e1
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,21 @@

@Slf4j
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:/");
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
public Path getWorkingDirectory() {
Expand Down

0 comments on commit 19734e1

Please sign in to comment.