Skip to content

Commit c954b51

Browse files
committed
fix(controller): remove PUBLISH_UNPUBLISH_VOLUME capability for SMB
The SMB CSI driver does not implement ControllerPublishVolume or ControllerUnpublishVolume since SMB shares are mounted directly by nodes and do not require controller-side attach/detach. Removing the ControllerServiceCapability_RPC_PUBLISH_UNPUBLISH_VOLUME capability avoids advertising unsupported functionality and allows the sanity test suite to pass. This change does not impact node-side STAGE_UNSTAGE_VOLUME support, which remains fully functional.
1 parent c159577 commit c954b51

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pkg/smb/smb.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ func (d *Driver) Run(endpoint, _ string, testMode bool) {
189189
csi.ControllerServiceCapability_RPC_SINGLE_NODE_MULTI_WRITER,
190190
csi.ControllerServiceCapability_RPC_CLONE_VOLUME,
191191
csi.ControllerServiceCapability_RPC_EXPAND_VOLUME,
192-
csi.ControllerServiceCapability_RPC_PUBLISH_UNPUBLISH_VOLUME,
193192
})
194193

195194
d.AddVolumeCapabilityAccessModes([]csi.VolumeCapability_AccessMode_Mode{

0 commit comments

Comments
 (0)