From c59016eacc8916e921a5b68c9144f527da5a83cf Mon Sep 17 00:00:00 2001 From: Ely Deckers Date: Sat, 20 Feb 2021 16:44:45 +0100 Subject: [PATCH] Change PublishContext to VolumeContext --- driver/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/node.go b/driver/node.go index e2efd071..0139dcbf 100644 --- a/driver/node.go +++ b/driver/node.go @@ -106,7 +106,7 @@ func (d *Driver) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRe source := getDeviceByIDPath(volumeName) - luksContext := getLuksContext(req.Secrets, publishContext, VolumeLifecycleNodeStageVolume) + luksContext := getLuksContext(req.Secrets, req.VolumeContext, VolumeLifecycleNodeStageVolume) target := req.StagingTargetPath