Skip to content

Commit c104a49

Browse files
authored
Merge branch 'main' into K8SPSMDB-1413
2 parents ffdbbff + e0d2cda commit c104a49

File tree

13 files changed

+155
-98
lines changed

13 files changed

+155
-98
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
* @hors @egegunes @pooknull @nmarukovich @gkech @mayankshah1607 @oksana-grishchenko
2-
/e2e-tests/ @jvpasinatto @eleo007 @valmiranogueira @bogdanjeler-ev
3-
Jenkinsfile @jvpasinatto @eleo007 @valmiranogueira @bogdanjeler-ev
2+
/e2e-tests/ @jvpasinatto @eleo007 @valmiranogueira
3+
Jenkinsfile @jvpasinatto @eleo007 @valmiranogueira
44

.github/pr-badge.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

e2e-tests/pvc-auto-resize/conf/some-name.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
enableVolumeScaling: true
1414
autoscaling:
1515
enabled: true
16-
triggerThresholdPercent: 80
16+
triggerThresholdPercent: 50
1717
growthStep: "2Gi"
1818
maxSize: "10Gi"
1919
backup:

e2e-tests/pvc-auto-resize/run

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ if [[ ${initial_size} != "1Gi" ]]; then
137137
exit 1
138138
fi
139139

140-
desc 'fill disk to trigger autoscaling threshold 80 percent'
141-
# 1Gi = 1024MB, we want to fill to ~85% to trigger the 80% threshold
142-
# Fill with 850MB to exceed threshold
143-
fill_disk_to_threshold "${cluster}-rs0-0" 80 850
140+
desc 'fill disk to trigger autoscaling threshold 50 percent'
141+
# 1Gi = 1024MB, we want to fill to ~60% to trigger the 50% threshold
142+
# Fill with 600MB to exceed threshold
143+
fill_disk_to_threshold "${cluster}-rs0-0" 50 600
144144

145145
desc 'wait for auto-resize to trigger'
146146
wait_for_auto_resize "mongod-data-${cluster}-rs0-0" "3Gi" 60 10
@@ -161,7 +161,7 @@ desc 'test namespace resource quota enforcement'
161161
apply_resourcequota 9Gi
162162

163163
echo "Filling disk again to trigger autoscaling with quota limit"
164-
fill_disk_to_threshold "${cluster}-rs0-0" 80 2400
164+
fill_disk_to_threshold "${cluster}-rs0-0" 50 1700
165165

166166
echo "Waiting to verify PVC does not resize beyond quota (should stay at 3Gi)"
167167
sleep 30
@@ -184,13 +184,17 @@ desc 'test maxSize limit'
184184
# Increase quota to allow maxSize testing (3 replicas * 10Gi maxSize = 30Gi)
185185
apply_resourcequota 30Gi
186186
echo "Continuing to fill disk to test maxSize enforcement"
187-
fill_disk_to_threshold "${cluster}-rs0-0" 80 4000
187+
fill_disk_to_threshold "${cluster}-rs0-0" 50 2900
188188
wait_for_auto_resize "mongod-data-${cluster}-rs0-0" "7Gi" 60 10
189+
wait_for_auto_resize "mongod-data-${cluster}-rs0-1" "7Gi" 60 10
190+
wait_for_auto_resize "mongod-data-${cluster}-rs0-2" "7Gi" 60 10
189191

190-
fill_disk_to_threshold "${cluster}-rs0-0" 80 5600
192+
fill_disk_to_threshold "${cluster}-rs0-0" 50 4000
191193
wait_for_auto_resize "mongod-data-${cluster}-rs0-0" "9Gi" 60 10
194+
wait_for_auto_resize "mongod-data-${cluster}-rs0-1" "9Gi" 60 10
195+
wait_for_auto_resize "mongod-data-${cluster}-rs0-2" "9Gi" 60 10
192196

193-
fill_disk_to_threshold "${cluster}-rs0-0" 80 7200
197+
fill_disk_to_threshold "${cluster}-rs0-0" 50 5200
194198

195199
final_size=$(get_pvc_size "mongod-data-${cluster}-rs0-0")
196200
if [[ ${final_size} == "10Gi" ]]; then

go.mod

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.25.1
55
require (
66
github.com/Percona-Lab/percona-version-service v0.0.0-20230216094301-f9489c81b52a
77
github.com/alecthomas/kingpin v2.2.6+incompatible
8-
github.com/cert-manager/cert-manager v1.19.2
8+
github.com/cert-manager/cert-manager v1.19.3
99
github.com/go-logr/logr v1.4.3
1010
github.com/go-openapi/errors v0.22.6
1111
github.com/go-openapi/runtime v0.29.2
@@ -14,17 +14,17 @@ require (
1414
github.com/go-openapi/validate v0.25.1
1515
github.com/golang/mock v1.6.0
1616
github.com/google/go-cmp v0.7.0
17-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.4
17+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.7
1818
github.com/hashicorp/go-version v1.8.0
1919
github.com/hashicorp/vault/api v1.22.0
2020
github.com/hashicorp/vault/api/auth/kubernetes v0.10.0
21-
github.com/onsi/ginkgo/v2 v2.27.5
22-
github.com/onsi/gomega v1.39.0
21+
github.com/onsi/ginkgo/v2 v2.28.1
22+
github.com/onsi/gomega v1.39.1
2323
github.com/percona/percona-backup-mongodb v1.8.1-0.20251104101930-05ab6d7e1004
2424
github.com/pkg/errors v0.9.1
2525
github.com/robfig/cron/v3 v3.0.1
2626
github.com/stretchr/testify v1.11.1
27-
go.mongodb.org/mongo-driver v1.17.6
27+
go.mongodb.org/mongo-driver v1.17.9
2828
go.uber.org/zap v1.27.1
2929
golang.org/x/sync v0.19.0
3030
google.golang.org/grpc v1.78.0
@@ -36,7 +36,7 @@ require (
3636
k8s.io/apimachinery v0.35.0
3737
k8s.io/client-go v0.35.0
3838
k8s.io/utils v0.0.0-20251002143259-bc988d571ff4
39-
sigs.k8s.io/controller-runtime v0.22.4
39+
sigs.k8s.io/controller-runtime v0.23.1
4040
sigs.k8s.io/mcs-api v0.3.0
4141
sigs.k8s.io/yaml v1.6.0
4242
)
@@ -125,7 +125,7 @@ require (
125125
github.com/golang/snappy v1.0.0 // indirect
126126
github.com/google/btree v1.1.3 // indirect
127127
github.com/google/gnostic-models v0.7.0 // indirect
128-
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 // indirect
128+
github.com/google/pprof v0.0.0-20260115054156-294ebfa9ad83 // indirect
129129
github.com/google/s2a-go v0.1.9 // indirect
130130
github.com/google/uuid v1.6.0 // indirect
131131
github.com/googleapis/enterprise-certificate-proxy v0.3.6 // indirect
@@ -190,21 +190,21 @@ require (
190190
go.uber.org/multierr v1.11.0 // indirect
191191
go.yaml.in/yaml/v2 v2.4.3 // indirect
192192
go.yaml.in/yaml/v3 v3.0.4 // indirect
193-
golang.org/x/crypto v0.45.0 // indirect
193+
golang.org/x/crypto v0.47.0 // indirect
194194
golang.org/x/exp v0.0.0-20250911091902-df9299821621 // indirect
195-
golang.org/x/mod v0.30.0 // indirect
196-
golang.org/x/net v0.47.0 // indirect
195+
golang.org/x/mod v0.32.0 // indirect
196+
golang.org/x/net v0.49.0 // indirect
197197
golang.org/x/oauth2 v0.34.0 // indirect
198-
golang.org/x/sys v0.38.0 // indirect
199-
golang.org/x/term v0.37.0 // indirect
200-
golang.org/x/text v0.32.0 // indirect
198+
golang.org/x/sys v0.40.0 // indirect
199+
golang.org/x/term v0.39.0 // indirect
200+
golang.org/x/text v0.33.0 // indirect
201201
golang.org/x/time v0.13.0 // indirect
202-
golang.org/x/tools v0.39.0 // indirect
202+
golang.org/x/tools v0.41.0 // indirect
203203
gomodules.xyz/jsonpatch/v2 v2.5.0 // indirect
204204
google.golang.org/api v0.251.0 // indirect
205205
google.golang.org/genproto v0.0.0-20250908214217-97024824d090 // indirect
206-
google.golang.org/genproto/googleapis/api v0.0.0-20251222181119-0a764e51fe1b // indirect
207-
google.golang.org/genproto/googleapis/rpc v0.0.0-20251222181119-0a764e51fe1b // indirect
206+
google.golang.org/genproto/googleapis/api v0.0.0-20260128011058-8636f8732409 // indirect
207+
google.golang.org/genproto/googleapis/rpc v0.0.0-20260128011058-8636f8732409 // indirect
208208
google.golang.org/protobuf v1.36.11 // indirect
209209
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
210210
gopkg.in/inf.v0 v0.9.1 // indirect
@@ -215,7 +215,7 @@ require (
215215
sigs.k8s.io/gateway-api v1.4.0 // indirect
216216
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
217217
sigs.k8s.io/randfill v1.0.0 // indirect
218-
sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect
218+
sigs.k8s.io/structured-merge-diff/v6 v6.3.2-0.20260122202528-d9cc6641c482 // indirect
219219
)
220220

221221
replace (

0 commit comments

Comments
 (0)