mirror of
https://github.com/democratic-csi/democratic-csi.git
synced 2026-10-17 16:56:17 +02:00
properly return topologies for local-hostpath
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
@@ -515,6 +515,11 @@ class ControllerClientCommonDriver extends CsiBaseDriver {
|
||||
driver.options.instance_id;
|
||||
}
|
||||
|
||||
let accessible_topology;
|
||||
if (typeof this.getAccessibleTopology === "function") {
|
||||
accessible_topology = await this.getAccessibleTopology();
|
||||
}
|
||||
|
||||
const res = {
|
||||
volume: {
|
||||
volume_id: name,
|
||||
@@ -522,6 +527,7 @@ class ControllerClientCommonDriver extends CsiBaseDriver {
|
||||
capacity_bytes: 0,
|
||||
content_source: volume_content_source,
|
||||
volume_context,
|
||||
accessible_topology,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user