mirror of
https://github.com/democratic-csi/democratic-csi.git
synced 2026-10-19 18:02:16 +02:00
ci flakes, delegated zfs setups
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
@@ -320,6 +320,10 @@ class ControllerClientCommonDriver extends CsiBaseDriver {
|
||||
return response.stdout.split("\n")[1].trim();
|
||||
}
|
||||
|
||||
async createDir(path) {
|
||||
await this.exec("mkdir", ["-p", path]);
|
||||
}
|
||||
|
||||
async deleteDir(path) {
|
||||
await this.exec("rm", ["-rf", path]);
|
||||
|
||||
@@ -600,6 +604,10 @@ class ControllerClientCommonDriver extends CsiBaseDriver {
|
||||
}
|
||||
}
|
||||
|
||||
if (!(await driver.directoryExists(driver.getControllerBasePath()))) {
|
||||
await driver.createDir(driver.getControllerBasePath());
|
||||
}
|
||||
|
||||
const available_capacity = await driver.getAvailableSpaceAtPath(
|
||||
driver.getControllerBasePath()
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user