Skip to content

Commit

Permalink
Support for acadia profile
Browse files Browse the repository at this point in the history
  • Loading branch information
sameshai committed Dec 2, 2024
1 parent 15974ef commit 079865c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions pkg/ibmcsidriver/controller_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,9 @@ func getRequestedCapacity(capRange *csi.CapacityRange, profileName string) (int6

// Limit is more than Required, but larger than Minimum. So we just set capcity to Minimum
// Too small, default
if profileName == SDPProfile {
if capBytes < MinimumSDPVolumeSizeInBytes { // SDP profile
capBytes = MinimumSDPVolumeSizeInBytes
}
} else {
if capBytes < utils.MinimumVolumeSizeInBytes { //Other tierd and custom profiles
capBytes = utils.MinimumVolumeSizeInBytes
}
// If profile is SDP profile then no need to check for minimum size as the RoundUpBytes will giving minimum value as 1 GiB
if profileName != SDPProfile && capBytes < utils.MinimumVolumeSizeInBytes {
capBytes = utils.MinimumVolumeSizeInBytes
}

return capBytes, nil
Expand Down

0 comments on commit 079865c

Please sign in to comment.