Skip to content

Commit

Permalink
fix: don't default to sharedv4/shared for RWX Volumes if proxy spec i…
Browse files Browse the repository at this point in the history
…s set

Signed-off-by: Shivanjan Chakravorty <[email protected]>
  • Loading branch information
Glitchfix committed Aug 24, 2023
1 parent 8015fc0 commit a4c475c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions csi/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,11 @@ func resolveSharedSpec(spec *api.VolumeSpec, req *csi.CreateVolumeRequest) (*api
return spec, nil
}

// don't default to sharedv4/shared for RWX Volumes if proxy spec is set
if spec.ProxySpec != nil {
return spec, nil
}

var shared bool
for _, cap := range req.GetVolumeCapabilities() {
mode := cap.GetAccessMode().GetMode()
Expand Down

0 comments on commit a4c475c

Please sign in to comment.