CSI: Snapshot volume create should use vol.Secrets (#10840)
Signed-off-by: Grant Griffiths <ggriffiths@purestorage.com>
This commit is contained in:
parent
db96e40f3a
commit
7f8e285559
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
csi: Fixed a bug where volume secrets were not used for creating snapshots.
|
||||
```
|
|
@ -1124,7 +1124,7 @@ func (v *CSIVolume) CreateSnapshot(args *structs.CSISnapshotCreateRequest, reply
|
|||
cReq := &cstructs.ClientCSIControllerCreateSnapshotRequest{
|
||||
ExternalSourceVolumeID: vol.ExternalID,
|
||||
Name: snap.Name,
|
||||
Secrets: snap.Secrets,
|
||||
Secrets: vol.Secrets,
|
||||
Parameters: snap.Parameters,
|
||||
}
|
||||
cReq.PluginID = plugin.ID
|
||||
|
|
Loading…
Reference in New Issue