Skip to content

Commit

Permalink
Add VolumeContext in ControllerPublishVolume
Browse files Browse the repository at this point in the history
Currently the VolumeContext is not populated in the
ControllerPublishVolume request in the volume lifecycle tests. Similar
to the NodePublishVolume, populate the VolumeContext as is.

Signed-off-by: Marjus Cako <[email protected]>
  • Loading branch information
marjus45 committed May 14, 2024
1 parent 7bd79c0 commit cf12c83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/sanity/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1721,6 +1721,7 @@ func VolumeLifecycle(r *Resources, sc *TestContext, count int) {
VolumeId: vol.GetVolume().GetVolumeId(),
NodeId: ni.GetNodeId(),
VolumeCapability: TestVolumeCapabilityWithAccessType(sc, csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER),
VolumeContext: vol.GetVolume().GetVolumeContext(),
Readonly: false,
Secrets: sc.Secrets.ControllerPublishVolumeSecret,
},
Expand Down

0 comments on commit cf12c83

Please sign in to comment.