Skip to content

Commit 508354d

Browse files
authored
Merge pull request kubernetes-csi#91 from msau42/use-attrs
Pass volume attributes to ControllerPublish, NodeStage, NodePublish
2 parents 3c91803 + ba6f4b5 commit 508354d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/sanity/node.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ func testFullWorkflowSuccess(s csi.ControllerClient, c csi.NodeClient, controlle
330330
Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER,
331331
},
332332
},
333-
Readonly: false,
333+
VolumeAttributes: vol.GetVolume().GetAttributes(),
334+
Readonly: false,
334335
}
335336

336337
if secrets != nil {
@@ -354,6 +355,7 @@ func testFullWorkflowSuccess(s csi.ControllerClient, c csi.NodeClient, controlle
354355
Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER,
355356
},
356357
},
358+
VolumeAttributes: vol.GetVolume().GetAttributes(),
357359
StagingTargetPath: config.StagingPath,
358360
}
359361
if controllerPublishSupported {
@@ -380,6 +382,7 @@ func testFullWorkflowSuccess(s csi.ControllerClient, c csi.NodeClient, controlle
380382
Mode: csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER,
381383
},
382384
},
385+
VolumeAttributes: vol.GetVolume().GetAttributes(),
383386
}
384387
if nodeStageSupported {
385388
nodepubvolRequest.StagingTargetPath = config.StagingPath

0 commit comments

Comments
 (0)