Skip to content

Commit ac20eb0

Browse files
pooknullhors
andauthored
K8SPSMDB-961: add .spec.sharding.balancer.enabled (#1304)
* K8SPSMDB-961: add `.spec.sharding.balancer.enabled` https://jira.percona.com/browse/K8SPSMDB-961 * fix * add `balancer` test * fix `TestConnectionLeaks` --------- Co-authored-by: Viacheslav Sarzhan <[email protected]>
1 parent 9727623 commit ac20eb0

File tree

17 files changed

+447
-74
lines changed

17 files changed

+447
-74
lines changed

config/crd/bases/psmdb.percona.com_perconaservermongodbs.yaml

Lines changed: 54 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,6 +1371,11 @@ spec:
13711371
items:
13721372
type: string
13731373
type: array
1374+
allocatedResourceStatuses:
1375+
additionalProperties:
1376+
type: string
1377+
type: object
1378+
x-kubernetes-map-type: granular
13741379
allocatedResources:
13751380
additionalProperties:
13761381
anyOf:
@@ -1411,8 +1416,6 @@ spec:
14111416
type: array
14121417
phase:
14131418
type: string
1414-
resizeStatus:
1415-
type: string
14161419
type: object
14171420
type: object
14181421
type: array
@@ -2558,6 +2561,8 @@ spec:
25582561
x-kubernetes-int-or-string: true
25592562
type: object
25602563
type: object
2564+
restartPolicy:
2565+
type: string
25612566
securityContext:
25622567
properties:
25632568
allowPrivilegeEscalation:
@@ -3858,6 +3863,11 @@ spec:
38583863
items:
38593864
type: string
38603865
type: array
3866+
allocatedResourceStatuses:
3867+
additionalProperties:
3868+
type: string
3869+
type: object
3870+
x-kubernetes-map-type: granular
38613871
allocatedResources:
38623872
additionalProperties:
38633873
anyOf:
@@ -3898,8 +3908,6 @@ spec:
38983908
type: array
38993909
phase:
39003910
type: string
3901-
resizeStatus:
3902-
type: string
39033911
type: object
39043912
type: object
39053913
type: array
@@ -5045,6 +5053,8 @@ spec:
50455053
x-kubernetes-int-or-string: true
50465054
type: object
50475055
type: object
5056+
restartPolicy:
5057+
type: string
50485058
securityContext:
50495059
properties:
50505060
allowPrivilegeEscalation:
@@ -5738,6 +5748,11 @@ spec:
57385748
items:
57395749
type: string
57405750
type: array
5751+
allocatedResourceStatuses:
5752+
additionalProperties:
5753+
type: string
5754+
type: object
5755+
x-kubernetes-map-type: granular
57415756
allocatedResources:
57425757
additionalProperties:
57435758
anyOf:
@@ -5778,8 +5793,6 @@ spec:
57785793
type: array
57795794
phase:
57805795
type: string
5781-
resizeStatus:
5782-
type: string
57835796
type: object
57845797
type: object
57855798
type: array
@@ -6925,6 +6938,8 @@ spec:
69256938
x-kubernetes-int-or-string: true
69266939
type: object
69276940
type: object
6941+
restartPolicy:
6942+
type: string
69286943
securityContext:
69296944
properties:
69306945
allowPrivilegeEscalation:
@@ -7379,6 +7394,11 @@ spec:
73797394
type: object
73807395
sharding:
73817396
properties:
7397+
balancer:
7398+
properties:
7399+
enabled:
7400+
type: boolean
7401+
type: object
73827402
configsvrReplSet:
73837403
properties:
73847404
affinity:
@@ -8301,6 +8321,11 @@ spec:
83018321
items:
83028322
type: string
83038323
type: array
8324+
allocatedResourceStatuses:
8325+
additionalProperties:
8326+
type: string
8327+
type: object
8328+
x-kubernetes-map-type: granular
83048329
allocatedResources:
83058330
additionalProperties:
83068331
anyOf:
@@ -8341,8 +8366,6 @@ spec:
83418366
type: array
83428367
phase:
83438368
type: string
8344-
resizeStatus:
8345-
type: string
83468369
type: object
83478370
type: object
83488371
type: array
@@ -9488,6 +9511,8 @@ spec:
94889511
x-kubernetes-int-or-string: true
94899512
type: object
94909513
type: object
9514+
restartPolicy:
9515+
type: string
94919516
securityContext:
94929517
properties:
94939518
allowPrivilegeEscalation:
@@ -10788,6 +10813,11 @@ spec:
1078810813
items:
1078910814
type: string
1079010815
type: array
10816+
allocatedResourceStatuses:
10817+
additionalProperties:
10818+
type: string
10819+
type: object
10820+
x-kubernetes-map-type: granular
1079110821
allocatedResources:
1079210822
additionalProperties:
1079310823
anyOf:
@@ -10828,8 +10858,6 @@ spec:
1082810858
type: array
1082910859
phase:
1083010860
type: string
10831-
resizeStatus:
10832-
type: string
1083310861
type: object
1083410862
type: object
1083510863
type: array
@@ -11975,6 +12003,8 @@ spec:
1197512003
x-kubernetes-int-or-string: true
1197612004
type: object
1197712005
type: object
12006+
restartPolicy:
12007+
type: string
1197812008
securityContext:
1197912009
properties:
1198012010
allowPrivilegeEscalation:
@@ -12668,6 +12698,11 @@ spec:
1266812698
items:
1266912699
type: string
1267012700
type: array
12701+
allocatedResourceStatuses:
12702+
additionalProperties:
12703+
type: string
12704+
type: object
12705+
x-kubernetes-map-type: granular
1267112706
allocatedResources:
1267212707
additionalProperties:
1267312708
anyOf:
@@ -12708,8 +12743,6 @@ spec:
1270812743
type: array
1270912744
phase:
1271012745
type: string
12711-
resizeStatus:
12712-
type: string
1271312746
type: object
1271412747
type: object
1271512748
type: array
@@ -13855,6 +13888,8 @@ spec:
1385513888
x-kubernetes-int-or-string: true
1385613889
type: object
1385713890
type: object
13891+
restartPolicy:
13892+
type: string
1385813893
securityContext:
1385913894
properties:
1386013895
allowPrivilegeEscalation:
@@ -15163,6 +15198,11 @@ spec:
1516315198
items:
1516415199
type: string
1516515200
type: array
15201+
allocatedResourceStatuses:
15202+
additionalProperties:
15203+
type: string
15204+
type: object
15205+
x-kubernetes-map-type: granular
1516615206
allocatedResources:
1516715207
additionalProperties:
1516815208
anyOf:
@@ -15203,8 +15243,6 @@ spec:
1520315243
type: array
1520415244
phase:
1520515245
type: string
15206-
resizeStatus:
15207-
type: string
1520815246
type: object
1520915247
type: object
1521015248
type: array
@@ -16350,6 +16388,8 @@ spec:
1635016388
x-kubernetes-int-or-string: true
1635116389
type: object
1635216390
type: object
16391+
restartPolicy:
16392+
type: string
1635316393
securityContext:
1635416394
properties:
1635516395
allowPrivilegeEscalation:

0 commit comments

Comments
 (0)