diff --git a/pkg/cluster/volumes.go b/pkg/cluster/volumes.go index 4352c85dae74f759d5ba417bdc9cf9392e9cda73..5837375da89e7a71d33b2c1e1214e396ed3d5898 100644 --- a/pkg/cluster/volumes.go +++ b/pkg/cluster/volumes.go @@ -96,13 +96,13 @@ func (c *Cluster) syncUnderlyingEBSVolume() error { var modifySize *int64 var modifyType *string - if targetValue.Iops != nil && targetValue.Iops >= 3000 { + if targetValue.Iops != nil && *targetValue.Iops >= int64(3000) { if volume.Iops != *targetValue.Iops { modifyIops = targetValue.Iops } } - if targetValue.Throughput != nil && targetValue.Throughput >= 125{ + if targetValue.Throughput != nil && *targetValue.Throughput >= int64(125) { if volume.Throughput != *targetValue.Throughput { modifyThroughput = targetValue.Throughput }