From ba389715b0f744efbf37ddb96ef8c3937a3218d1 Mon Sep 17 00:00:00 2001 From: Michelle Au Date: Mon, 9 Jul 2018 14:25:07 -0700 Subject: [PATCH] Pass volume attributes to ControllerPublish, NodeStage, NodePublish --- pkg/sanity/node.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/sanity/node.go b/pkg/sanity/node.go index 5085bc50..ca0b9db8 100644 --- a/pkg/sanity/node.go +++ b/pkg/sanity/node.go @@ -332,7 +332,8 @@ func testFullWorkflowSuccess(s csi.ControllerClient, c csi.NodeClient, controlle Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER, }, }, - Readonly: false, + VolumeAttributes: vol.GetVolume().GetAttributes(), + Readonly: false, } if secrets != nil { @@ -356,6 +357,7 @@ func testFullWorkflowSuccess(s csi.ControllerClient, c csi.NodeClient, controlle Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER, }, }, + VolumeAttributes: vol.GetVolume().GetAttributes(), StagingTargetPath: config.StagingPath, } if controllerPublishSupported { @@ -382,6 +384,7 @@ func testFullWorkflowSuccess(s csi.ControllerClient, c csi.NodeClient, controlle Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER, }, }, + VolumeAttributes: vol.GetVolume().GetAttributes(), } if nodeStageSupported { nodepubvolRequest.StagingTargetPath = config.StagingPath