Skip to content

Commit

Permalink
Terraform access mode on mapped sdc (#43)
Browse files Browse the repository at this point in the history
* access_mode for mapped sdc to volume

* make check

* adding test for access mode in mapped sdc
  • Loading branch information
Krishnan-Priyanshu authored Feb 3, 2023
1 parent 7692987 commit 4484a6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions inttests/volume_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ func TestMapQueryUnmapVolume(t *testing.T) {
SdcID: chosenSDC.Sdc.ID,
AllowMultipleMappings: "FALSE",
AllSdcs: "",
AccessMode: "ReadOnly",
}
volume.MapVolumeSdc(mapVolumeSdcParam)

Expand Down
1 change: 1 addition & 0 deletions types/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,7 @@ type MapVolumeSdcParam struct {
SdcID string `json:"sdcId,omitempty"`
AllowMultipleMappings string `json:"allowMultipleMappings,omitempty"`
AllSdcs string `json:"allSdcs,omitempty"`
AccessMode string `json:"accessMode,omitempty"`
}

// UnmapVolumeSdcParam defines struct for UnmapVolumeSdcParam
Expand Down

0 comments on commit 4484a6d

Please sign in to comment.