mirror of
https://github.com/democratic-csi/democratic-csi.git
synced 2026-10-21 10:19:20 +02:00
better handling of oci probe and proper logic around ctr options
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
@@ -6,3 +6,5 @@ containerd:
|
||||
# use k8s.io to use the k8s ns
|
||||
#namespace: default
|
||||
#creds encryption key
|
||||
#env:
|
||||
# foo: bar
|
||||
|
||||
@@ -133,7 +133,7 @@ class EphemeralInlineContainerDOciDriver extends CsiBaseDriver {
|
||||
} catch (err) {
|
||||
throw new GrpcError(
|
||||
grpc.status.FAILED_PRECONDITION,
|
||||
`containerd is not available: ${String(err)}`,
|
||||
`containerd is not available: ${JSON.stringify(err)}`,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ class EphemeralInlineContainerDOciDriver extends CsiBaseDriver {
|
||||
const driver = this;
|
||||
let options = _.get(driver.options, "containerd", {});
|
||||
options = options || {};
|
||||
return new CTR(options);
|
||||
return new CTR({ containerd: options });
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user