Do not modify if values are below gp3 minimum throughput. (#1543)

* Do not modify if values are below gp3 minimum throughput.
This commit is contained in:
Jan Mussler 2021-06-30 15:01:55 +02:00 committed by GitHub
parent 54e506c00b
commit 330c2c4c0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -96,13 +96,13 @@ func (c *Cluster) syncUnderlyingEBSVolume() error {
var modifySize *int64 var modifySize *int64
var modifyType *string var modifyType *string
if targetValue.Iops != nil { if targetValue.Iops != nil && *targetValue.Iops >= int64(3000) {
if volume.Iops != *targetValue.Iops { if volume.Iops != *targetValue.Iops {
modifyIops = targetValue.Iops modifyIops = targetValue.Iops
} }
} }
if targetValue.Throughput != nil { if targetValue.Throughput != nil && *targetValue.Throughput >= int64(125) {
if volume.Throughput != *targetValue.Throughput { if volume.Throughput != *targetValue.Throughput {
modifyThroughput = targetValue.Throughput modifyThroughput = targetValue.Throughput
} }