Skip to content

Commit 939075f

Browse files
committed
Advertise SINGLE_NODE_MULTI_WRITER capabilities
1 parent 24143aa commit 939075f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

pkg/hostpath/controllerserver.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,7 @@ func (hp *hostPath) getControllerServiceCapabilities() []*csi.ControllerServiceC
797797
csi.ControllerServiceCapability_RPC_LIST_VOLUMES,
798798
csi.ControllerServiceCapability_RPC_CLONE_VOLUME,
799799
csi.ControllerServiceCapability_RPC_VOLUME_CONDITION,
800+
csi.ControllerServiceCapability_RPC_SINGLE_NODE_MULTI_WRITER,
800801
}
801802
if hp.config.EnableVolumeExpansion {
802803
cl = append(cl, csi.ControllerServiceCapability_RPC_EXPAND_VOLUME)

pkg/hostpath/nodeserver.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,13 @@ func (hp *hostPath) NodeGetCapabilities(ctx context.Context, req *csi.NodeGetCap
382382
},
383383
},
384384
},
385+
{
386+
Type: &csi.NodeServiceCapability_Rpc{
387+
Rpc: &csi.NodeServiceCapability_RPC{
388+
Type: csi.NodeServiceCapability_RPC_SINGLE_NODE_MULTI_WRITER,
389+
},
390+
},
391+
},
385392
}
386393
if hp.config.EnableVolumeExpansion {
387394
caps = append(caps, &csi.NodeServiceCapability{

0 commit comments

Comments
 (0)