Unverified Commit 353151c0 authored by Danielle Lancashire's avatar Danielle Lancashire
Browse files

csiclient: Add grpc.CallOption support to NodeUnpublishVolume

parent 35973c63
Branches unavailable
No related merge requests found
Showing with 4 additions and 4 deletions
+4 -4
......@@ -394,7 +394,7 @@ func (c *client) NodePublishVolume(ctx context.Context, req *NodePublishVolumeRe
return err
}
func (c *client) NodeUnpublishVolume(ctx context.Context, volumeID, targetPath string) error {
func (c *client) NodeUnpublishVolume(ctx context.Context, volumeID, targetPath string, opts ...grpc.CallOption) error {
if c == nil {
return fmt.Errorf("Client not initialized")
}
......@@ -417,6 +417,6 @@ func (c *client) NodeUnpublishVolume(ctx context.Context, volumeID, targetPath s
// NodeUnpublishVolume's response contains no extra data. If err == nil, we were
// successful.
_, err := c.nodeClient.NodeUnpublishVolume(ctx, req)
_, err := c.nodeClient.NodeUnpublishVolume(ctx, req, opts...)
return err
}
......@@ -208,7 +208,7 @@ func (c *Client) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolu
return c.NextNodePublishVolumeErr
}
func (c *Client) NodeUnpublishVolume(ctx context.Context, volumeID, targetPath string) error {
func (c *Client) NodeUnpublishVolume(ctx context.Context, volumeID, targetPath string, opts ...grpc.CallOption) error {
c.Mu.Lock()
defer c.Mu.Unlock()
......
......@@ -66,7 +66,7 @@ type CSIPlugin interface {
// NodeUnpublishVolume is used to cleanup usage of a volume for an alloc. This
// MUST be called before calling NodeUnstageVolume or ControllerUnpublishVolume
// for the given volume.
NodeUnpublishVolume(ctx context.Context, volumeID, targetPath string) error
NodeUnpublishVolume(ctx context.Context, volumeID, targetPath string, opts ...grpc.CallOption) error
// Shutdown the client and ensure any connections are cleaned up.
Close() error
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment