mirror of
https://github.com/democratic-csi/democratic-csi.git
synced 2026-10-18 19:05:45 +02:00
properly return topologies for local-hostpath
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
@@ -57,6 +57,22 @@ class ControllerLocalHostpathDriver extends ControllerClientCommonDriver {
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* List of topologies associated with the *volume*
|
||||
*
|
||||
* @returns array
|
||||
*/
|
||||
async getAccessibleTopology() {
|
||||
const response = await super.NodeGetInfo(...arguments);
|
||||
return [
|
||||
{
|
||||
segments: {
|
||||
[NODE_TOPOLOGY_KEY_NAME]: response.node_id,
|
||||
},
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Add node topologies
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user