Skip to content

Commit 330c2c4

Browse files
authored
Do not modify if values are below gp3 minimum throughput. (zalando#1543)
* Do not modify if values are below gp3 minimum throughput.
1 parent 54e506c commit 330c2c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/cluster/volumes.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ func (c *Cluster) syncUnderlyingEBSVolume() error {
9696
var modifySize *int64
9797
var modifyType *string
9898

99-
if targetValue.Iops != nil {
99+
if targetValue.Iops != nil && *targetValue.Iops >= int64(3000) {
100100
if volume.Iops != *targetValue.Iops {
101101
modifyIops = targetValue.Iops
102102
}
103103
}
104104

105-
if targetValue.Throughput != nil {
105+
if targetValue.Throughput != nil && *targetValue.Throughput >= int64(125) {
106106
if volume.Throughput != *targetValue.Throughput {
107107
modifyThroughput = targetValue.Throughput
108108
}

0 commit comments

Comments
 (0)