@bluedynamics/cdk8s-plone 0.2.6 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.jsii CHANGED
@@ -280,7 +280,7 @@
280
280
  },
281
281
  "locationInModule": {
282
282
  "filename": "src/plone.ts",
283
- "line": 480
283
+ "line": 534
284
284
  },
285
285
  "parameters": [
286
286
  {
@@ -307,7 +307,7 @@
307
307
  "kind": "class",
308
308
  "locationInModule": {
309
309
  "filename": "src/plone.ts",
310
- "line": 432
310
+ "line": 474
311
311
  },
312
312
  "name": "Plone",
313
313
  "properties": [
@@ -320,13 +320,34 @@
320
320
  "immutable": true,
321
321
  "locationInModule": {
322
322
  "filename": "src/plone.ts",
323
- "line": 451
323
+ "line": 493
324
324
  },
325
325
  "name": "backendDeployment",
326
326
  "type": {
327
327
  "fqn": "cdk8s.ApiObject"
328
328
  }
329
329
  },
330
+ {
331
+ "docs": {
332
+ "remarks": "Empty without backend groups.",
333
+ "stability": "stable",
334
+ "summary": "The backend group Deployments by group name, as an escape hatch, see `backendDeployment`."
335
+ },
336
+ "immutable": true,
337
+ "locationInModule": {
338
+ "filename": "src/plone.ts",
339
+ "line": 516
340
+ },
341
+ "name": "backendGroupDeployments",
342
+ "type": {
343
+ "collection": {
344
+ "elementtype": {
345
+ "fqn": "cdk8s.ApiObject"
346
+ },
347
+ "kind": "map"
348
+ }
349
+ }
350
+ },
330
351
  {
331
352
  "docs": {
332
353
  "stability": "stable",
@@ -335,7 +356,7 @@
335
356
  "immutable": true,
336
357
  "locationInModule": {
337
358
  "filename": "src/plone.ts",
338
- "line": 456
359
+ "line": 498
339
360
  },
340
361
  "name": "backendService",
341
362
  "type": {
@@ -351,13 +372,34 @@
351
372
  "immutable": true,
352
373
  "locationInModule": {
353
374
  "filename": "src/plone.ts",
354
- "line": 437
375
+ "line": 479
355
376
  },
356
377
  "name": "backendServiceName",
357
378
  "type": {
358
379
  "primitive": "string"
359
380
  }
360
381
  },
382
+ {
383
+ "docs": {
384
+ "remarks": "Empty without frontend groups or for the Blicca variant.",
385
+ "stability": "stable",
386
+ "summary": "The frontend group Deployments by group name, as an escape hatch, see `backendDeployment`."
387
+ },
388
+ "immutable": true,
389
+ "locationInModule": {
390
+ "filename": "src/plone.ts",
391
+ "line": 522
392
+ },
393
+ "name": "frontendGroupDeployments",
394
+ "type": {
395
+ "collection": {
396
+ "elementtype": {
397
+ "fqn": "cdk8s.ApiObject"
398
+ },
399
+ "kind": "map"
400
+ }
401
+ }
402
+ },
361
403
  {
362
404
  "docs": {
363
405
  "stability": "stable",
@@ -366,7 +408,7 @@
366
408
  "immutable": true,
367
409
  "locationInModule": {
368
410
  "filename": "src/plone.ts",
369
- "line": 478
411
+ "line": 532
370
412
  },
371
413
  "name": "siteId",
372
414
  "type": {
@@ -381,7 +423,7 @@
381
423
  "immutable": true,
382
424
  "locationInModule": {
383
425
  "filename": "src/plone.ts",
384
- "line": 473
426
+ "line": 527
385
427
  },
386
428
  "name": "variant",
387
429
  "type": {
@@ -397,7 +439,7 @@
397
439
  "immutable": true,
398
440
  "locationInModule": {
399
441
  "filename": "src/plone.ts",
400
- "line": 462
442
+ "line": 504
401
443
  },
402
444
  "name": "frontendDeployment",
403
445
  "optional": true,
@@ -414,7 +456,7 @@
414
456
  "immutable": true,
415
457
  "locationInModule": {
416
458
  "filename": "src/plone.ts",
417
- "line": 468
459
+ "line": 510
418
460
  },
419
461
  "name": "frontendService",
420
462
  "optional": true,
@@ -431,7 +473,7 @@
431
473
  "immutable": true,
432
474
  "locationInModule": {
433
475
  "filename": "src/plone.ts",
434
- "line": 443
476
+ "line": 485
435
477
  },
436
478
  "name": "frontendServiceName",
437
479
  "optional": true,
@@ -501,6 +543,30 @@
501
543
  "fqn": "cdk8s-plus-30.Env"
502
544
  }
503
545
  },
546
+ {
547
+ "abstract": true,
548
+ "docs": {
549
+ "default": "- no groups",
550
+ "remarks": "Their replicas add to `replicas`.",
551
+ "stability": "stable",
552
+ "summary": "Additional Deployments whose pods run with different settings and join this role's Service and PodDisruptionBudget, see `PloneGroup`."
553
+ },
554
+ "immutable": true,
555
+ "locationInModule": {
556
+ "filename": "src/plone.ts",
557
+ "line": 336
558
+ },
559
+ "name": "groups",
560
+ "optional": true,
561
+ "type": {
562
+ "collection": {
563
+ "elementtype": {
564
+ "fqn": "@bluedynamics/cdk8s-plone.PloneGroup"
565
+ },
566
+ "kind": "array"
567
+ }
568
+ }
569
+ },
504
570
  {
505
571
  "abstract": true,
506
572
  "docs": {
@@ -1211,6 +1277,95 @@
1211
1277
  ],
1212
1278
  "symbolId": "src/plone:PloneCapabilities"
1213
1279
  },
1280
+ "@bluedynamics/cdk8s-plone.PloneGroup": {
1281
+ "assembly": "@bluedynamics/cdk8s-plone",
1282
+ "datatype": true,
1283
+ "docs": {
1284
+ "stability": "stable",
1285
+ "summary": "A group of pods that runs with different settings behind the same Service as the main Deployment of its role, e.g. an allocator experiment or a canary. Everything not set here is inherited from the role's options."
1286
+ },
1287
+ "fqn": "@bluedynamics/cdk8s-plone.PloneGroup",
1288
+ "kind": "interface",
1289
+ "locationInModule": {
1290
+ "filename": "src/plone.ts",
1291
+ "line": 343
1292
+ },
1293
+ "name": "PloneGroup",
1294
+ "properties": [
1295
+ {
1296
+ "abstract": true,
1297
+ "docs": {
1298
+ "remarks": "Pods carry it in the label\n`cdk8s-plone.bluedynamics.eu/group`. `default` is reserved for the main\nDeployment. Renaming a group creates a new Deployment; cdk8s does not\ndelete the old one.",
1299
+ "stability": "stable",
1300
+ "summary": "Name of the group, a lowercase DNS label."
1301
+ },
1302
+ "immutable": true,
1303
+ "locationInModule": {
1304
+ "filename": "src/plone.ts",
1305
+ "line": 350
1306
+ },
1307
+ "name": "name",
1308
+ "type": {
1309
+ "primitive": "string"
1310
+ }
1311
+ },
1312
+ {
1313
+ "abstract": true,
1314
+ "docs": {
1315
+ "default": "- the role's environment",
1316
+ "stability": "stable",
1317
+ "summary": "Environment for the group's pods, merged over the role's environment: variables with the same name are replaced, sources are appended."
1318
+ },
1319
+ "immutable": true,
1320
+ "locationInModule": {
1321
+ "filename": "src/plone.ts",
1322
+ "line": 363
1323
+ },
1324
+ "name": "environment",
1325
+ "optional": true,
1326
+ "type": {
1327
+ "fqn": "cdk8s-plus-30.Env"
1328
+ }
1329
+ },
1330
+ {
1331
+ "abstract": true,
1332
+ "docs": {
1333
+ "default": "- the role's image",
1334
+ "stability": "stable",
1335
+ "summary": "Container image for the group's pods."
1336
+ },
1337
+ "immutable": true,
1338
+ "locationInModule": {
1339
+ "filename": "src/plone.ts",
1340
+ "line": 369
1341
+ },
1342
+ "name": "image",
1343
+ "optional": true,
1344
+ "type": {
1345
+ "primitive": "string"
1346
+ }
1347
+ },
1348
+ {
1349
+ "abstract": true,
1350
+ "docs": {
1351
+ "default": "1",
1352
+ "stability": "stable",
1353
+ "summary": "Number of pods in the group, in addition to the role's `replicas`."
1354
+ },
1355
+ "immutable": true,
1356
+ "locationInModule": {
1357
+ "filename": "src/plone.ts",
1358
+ "line": 356
1359
+ },
1360
+ "name": "replicas",
1361
+ "optional": true,
1362
+ "type": {
1363
+ "primitive": "number"
1364
+ }
1365
+ }
1366
+ ],
1367
+ "symbolId": "src/plone:PloneGroup"
1368
+ },
1214
1369
  "@bluedynamics/cdk8s-plone.PloneHttpcache": {
1215
1370
  "assembly": "@bluedynamics/cdk8s-plone",
1216
1371
  "base": "constructs.Construct",
@@ -1593,7 +1748,7 @@
1593
1748
  "kind": "interface",
1594
1749
  "locationInModule": {
1595
1750
  "filename": "src/plone.ts",
1596
- "line": 365
1751
+ "line": 407
1597
1752
  },
1598
1753
  "name": "PloneOptions",
1599
1754
  "properties": [
@@ -1607,7 +1762,7 @@
1607
1762
  "immutable": true,
1608
1763
  "locationInModule": {
1609
1764
  "filename": "src/plone.ts",
1610
- "line": 390
1765
+ "line": 432
1611
1766
  },
1612
1767
  "name": "backend",
1613
1768
  "optional": true,
@@ -1626,7 +1781,7 @@
1626
1781
  "immutable": true,
1627
1782
  "locationInModule": {
1628
1783
  "filename": "src/plone.ts",
1629
- "line": 397
1784
+ "line": 439
1630
1785
  },
1631
1786
  "name": "frontend",
1632
1787
  "optional": true,
@@ -1646,7 +1801,7 @@
1646
1801
  "immutable": true,
1647
1802
  "locationInModule": {
1648
1803
  "filename": "src/plone.ts",
1649
- "line": 405
1804
+ "line": 447
1650
1805
  },
1651
1806
  "name": "imagePullSecrets",
1652
1807
  "optional": true,
@@ -1670,7 +1825,7 @@
1670
1825
  "immutable": true,
1671
1826
  "locationInModule": {
1672
1827
  "filename": "src/plone.ts",
1673
- "line": 378
1828
+ "line": 420
1674
1829
  },
1675
1830
  "name": "siteId",
1676
1831
  "optional": true,
@@ -1688,7 +1843,7 @@
1688
1843
  "immutable": true,
1689
1844
  "locationInModule": {
1690
1845
  "filename": "src/plone.ts",
1691
- "line": 384
1846
+ "line": 426
1692
1847
  },
1693
1848
  "name": "variant",
1694
1849
  "optional": true,
@@ -1707,7 +1862,7 @@
1707
1862
  "immutable": true,
1708
1863
  "locationInModule": {
1709
1864
  "filename": "src/plone.ts",
1710
- "line": 371
1865
+ "line": 413
1711
1866
  },
1712
1867
  "name": "version",
1713
1868
  "optional": true,
@@ -2183,7 +2338,7 @@
2183
2338
  "kind": "enum",
2184
2339
  "locationInModule": {
2185
2340
  "filename": "src/plone.ts",
2186
- "line": 339
2341
+ "line": 381
2187
2342
  },
2188
2343
  "members": [
2189
2344
  {
@@ -3628,6 +3783,6 @@
3628
3783
  "symbolId": "src/vinylcache:VinylCacheTracing"
3629
3784
  }
3630
3785
  },
3631
- "version": "0.2.6",
3632
- "fingerprint": "GDF7yCNnebNKATl14J8tk/PJPEuS5DPWCi2wDkB5SK4="
3786
+ "version": "0.3.0",
3787
+ "fingerprint": "rl3/URkJz1mEAlfuAS+50nlVLrexMn3EfFfToFXEYxA="
3633
3788
  }
package/API.md CHANGED
@@ -149,8 +149,10 @@ Any object.
149
149
  | --- | --- | --- |
150
150
  | <code><a href="#@bluedynamics/cdk8s-plone.Plone.property.node">node</a></code> | <code>constructs.Node</code> | The tree node. |
151
151
  | <code><a href="#@bluedynamics/cdk8s-plone.Plone.property.backendDeployment">backendDeployment</a></code> | <code>cdk8s.ApiObject</code> | The backend Deployment, as an escape hatch for fields without a dedicated option. |
152
+ | <code><a href="#@bluedynamics/cdk8s-plone.Plone.property.backendGroupDeployments">backendGroupDeployments</a></code> | <code>{[ key: string ]: cdk8s.ApiObject}</code> | The backend group Deployments by group name, as an escape hatch, see `backendDeployment`. |
152
153
  | <code><a href="#@bluedynamics/cdk8s-plone.Plone.property.backendService">backendService</a></code> | <code>cdk8s.ApiObject</code> | The backend Service, as an escape hatch, see `backendDeployment`. |
153
154
  | <code><a href="#@bluedynamics/cdk8s-plone.Plone.property.backendServiceName">backendServiceName</a></code> | <code>string</code> | Name of the backend Kubernetes service. |
155
+ | <code><a href="#@bluedynamics/cdk8s-plone.Plone.property.frontendGroupDeployments">frontendGroupDeployments</a></code> | <code>{[ key: string ]: cdk8s.ApiObject}</code> | The frontend group Deployments by group name, as an escape hatch, see `backendDeployment`. |
154
156
  | <code><a href="#@bluedynamics/cdk8s-plone.Plone.property.siteId">siteId</a></code> | <code>string</code> | The Plone site ID in ZODB. |
155
157
  | <code><a href="#@bluedynamics/cdk8s-plone.Plone.property.variant">variant</a></code> | <code><a href="#@bluedynamics/cdk8s-plone.PloneVariant">PloneVariant</a></code> | The deployment variant being used (VOLTO or BLICCA). |
156
158
  | <code><a href="#@bluedynamics/cdk8s-plone.Plone.property.frontendDeployment">frontendDeployment</a></code> | <code>cdk8s.ApiObject</code> | The frontend Deployment, as an escape hatch, see `backendDeployment`. |
@@ -187,6 +189,20 @@ The Plone container is always `containers/0`.
187
189
 
188
190
  ---
189
191
 
192
+ ##### `backendGroupDeployments`<sup>Required</sup> <a name="backendGroupDeployments" id="@bluedynamics/cdk8s-plone.Plone.property.backendGroupDeployments"></a>
193
+
194
+ ```typescript
195
+ public readonly backendGroupDeployments: {[ key: string ]: ApiObject};
196
+ ```
197
+
198
+ - *Type:* {[ key: string ]: cdk8s.ApiObject}
199
+
200
+ The backend group Deployments by group name, as an escape hatch, see `backendDeployment`.
201
+
202
+ Empty without backend groups.
203
+
204
+ ---
205
+
190
206
  ##### `backendService`<sup>Required</sup> <a name="backendService" id="@bluedynamics/cdk8s-plone.Plone.property.backendService"></a>
191
207
 
192
208
  ```typescript
@@ -213,6 +229,20 @@ Use this to reference the backend service from other constructs.
213
229
 
214
230
  ---
215
231
 
232
+ ##### `frontendGroupDeployments`<sup>Required</sup> <a name="frontendGroupDeployments" id="@bluedynamics/cdk8s-plone.Plone.property.frontendGroupDeployments"></a>
233
+
234
+ ```typescript
235
+ public readonly frontendGroupDeployments: {[ key: string ]: ApiObject};
236
+ ```
237
+
238
+ - *Type:* {[ key: string ]: cdk8s.ApiObject}
239
+
240
+ The frontend group Deployments by group name, as an escape hatch, see `backendDeployment`.
241
+
242
+ Empty without frontend groups or for the Blicca variant.
243
+
244
+ ---
245
+
216
246
  ##### `siteId`<sup>Required</sup> <a name="siteId" id="@bluedynamics/cdk8s-plone.Plone.property.siteId"></a>
217
247
 
218
248
  ```typescript
@@ -785,6 +815,7 @@ const ploneBaseOptions: PloneBaseOptions = { ... }
785
815
  | --- | --- | --- |
786
816
  | <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.annotations">annotations</a></code> | <code>{[ key: string ]: string}</code> | Annotations to add to the Deployment metadata. |
787
817
  | <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.environment">environment</a></code> | <code>cdk8s-plus-30.Env</code> | Environment variables to set in the container. |
818
+ | <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.groups">groups</a></code> | <code><a href="#@bluedynamics/cdk8s-plone.PloneGroup">PloneGroup</a>[]</code> | Additional Deployments whose pods run with different settings and join this role's Service and PodDisruptionBudget, see `PloneGroup`. |
788
819
  | <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.image">image</a></code> | <code>string</code> | Container image to use for the deployment. |
789
820
  | <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.imagePullPolicy">imagePullPolicy</a></code> | <code>string</code> | Image pull policy for the container. |
790
821
  | <code><a href="#@bluedynamics/cdk8s-plone.PloneBaseOptions.property.limitCpu">limitCpu</a></code> | <code>string</code> | CPU limit for the container. |
@@ -855,6 +886,21 @@ Use cdk8s-plus-30 Env class to define variables and sources.
855
886
 
856
887
  ---
857
888
 
889
+ ##### `groups`<sup>Optional</sup> <a name="groups" id="@bluedynamics/cdk8s-plone.PloneBaseOptions.property.groups"></a>
890
+
891
+ ```typescript
892
+ public readonly groups: PloneGroup[];
893
+ ```
894
+
895
+ - *Type:* <a href="#@bluedynamics/cdk8s-plone.PloneGroup">PloneGroup</a>[]
896
+ - *Default:* no groups
897
+
898
+ Additional Deployments whose pods run with different settings and join this role's Service and PodDisruptionBudget, see `PloneGroup`.
899
+
900
+ Their replicas add to `replicas`.
901
+
902
+ ---
903
+
858
904
  ##### `image`<sup>Optional</sup> <a name="image" id="@bluedynamics/cdk8s-plone.PloneBaseOptions.property.image"></a>
859
905
 
860
906
  ```typescript
@@ -1429,6 +1475,85 @@ Capabilities to drop (e.g. 'ALL', 'NET_RAW').
1429
1475
 
1430
1476
  ---
1431
1477
 
1478
+ ### PloneGroup <a name="PloneGroup" id="@bluedynamics/cdk8s-plone.PloneGroup"></a>
1479
+
1480
+ A group of pods that runs with different settings behind the same Service as the main Deployment of its role, e.g. an allocator experiment or a canary. Everything not set here is inherited from the role's options.
1481
+
1482
+ #### Initializer <a name="Initializer" id="@bluedynamics/cdk8s-plone.PloneGroup.Initializer"></a>
1483
+
1484
+ ```typescript
1485
+ import { PloneGroup } from '@bluedynamics/cdk8s-plone'
1486
+
1487
+ const ploneGroup: PloneGroup = { ... }
1488
+ ```
1489
+
1490
+ #### Properties <a name="Properties" id="Properties"></a>
1491
+
1492
+ | **Name** | **Type** | **Description** |
1493
+ | --- | --- | --- |
1494
+ | <code><a href="#@bluedynamics/cdk8s-plone.PloneGroup.property.name">name</a></code> | <code>string</code> | Name of the group, a lowercase DNS label. |
1495
+ | <code><a href="#@bluedynamics/cdk8s-plone.PloneGroup.property.environment">environment</a></code> | <code>cdk8s-plus-30.Env</code> | Environment for the group's pods, merged over the role's environment: variables with the same name are replaced, sources are appended. |
1496
+ | <code><a href="#@bluedynamics/cdk8s-plone.PloneGroup.property.image">image</a></code> | <code>string</code> | Container image for the group's pods. |
1497
+ | <code><a href="#@bluedynamics/cdk8s-plone.PloneGroup.property.replicas">replicas</a></code> | <code>number</code> | Number of pods in the group, in addition to the role's `replicas`. |
1498
+
1499
+ ---
1500
+
1501
+ ##### `name`<sup>Required</sup> <a name="name" id="@bluedynamics/cdk8s-plone.PloneGroup.property.name"></a>
1502
+
1503
+ ```typescript
1504
+ public readonly name: string;
1505
+ ```
1506
+
1507
+ - *Type:* string
1508
+
1509
+ Name of the group, a lowercase DNS label.
1510
+
1511
+ Pods carry it in the label
1512
+ `cdk8s-plone.bluedynamics.eu/group`. `default` is reserved for the main
1513
+ Deployment. Renaming a group creates a new Deployment; cdk8s does not
1514
+ delete the old one.
1515
+
1516
+ ---
1517
+
1518
+ ##### `environment`<sup>Optional</sup> <a name="environment" id="@bluedynamics/cdk8s-plone.PloneGroup.property.environment"></a>
1519
+
1520
+ ```typescript
1521
+ public readonly environment: Env;
1522
+ ```
1523
+
1524
+ - *Type:* cdk8s-plus-30.Env
1525
+ - *Default:* the role's environment
1526
+
1527
+ Environment for the group's pods, merged over the role's environment: variables with the same name are replaced, sources are appended.
1528
+
1529
+ ---
1530
+
1531
+ ##### `image`<sup>Optional</sup> <a name="image" id="@bluedynamics/cdk8s-plone.PloneGroup.property.image"></a>
1532
+
1533
+ ```typescript
1534
+ public readonly image: string;
1535
+ ```
1536
+
1537
+ - *Type:* string
1538
+ - *Default:* the role's image
1539
+
1540
+ Container image for the group's pods.
1541
+
1542
+ ---
1543
+
1544
+ ##### `replicas`<sup>Optional</sup> <a name="replicas" id="@bluedynamics/cdk8s-plone.PloneGroup.property.replicas"></a>
1545
+
1546
+ ```typescript
1547
+ public readonly replicas: number;
1548
+ ```
1549
+
1550
+ - *Type:* number
1551
+ - *Default:* 1
1552
+
1553
+ Number of pods in the group, in addition to the role's `replicas`.
1554
+
1555
+ ---
1556
+
1432
1557
  ### PloneHttpcacheOptions <a name="PloneHttpcacheOptions" id="@bluedynamics/cdk8s-plone.PloneHttpcacheOptions"></a>
1433
1558
 
1434
1559
  Configuration options for PloneHttpcache (Varnish caching layer).
@@ -172,6 +172,46 @@ backend: {
172
172
  The top-level `serviceAnnotations` option is deprecated. Use `service.annotations` instead.
173
173
  ```
174
174
 
175
+ (groups)=
176
+
177
+ ### Groups
178
+
179
+ `groups` runs part of a role's pods with different settings behind the same Service, for example an allocator experiment or a canary.
180
+ Each group becomes an additional Deployment.
181
+
182
+ ```typescript
183
+ import { Env, EnvValue } from 'cdk8s-plus-30';
184
+
185
+ backend: {
186
+ replicas: 4,
187
+ groups: [
188
+ {
189
+ name: 'jemalloc',
190
+ replicas: 2,
191
+ environment: new Env([], {
192
+ LD_PRELOAD: EnvValue.fromValue('/usr/lib/x86_64-linux-gnu/libjemalloc.so.2'),
193
+ }),
194
+ },
195
+ ],
196
+ }
197
+ ```
198
+
199
+ - A group inherits all settings of its role, including probes, resources, scheduling, and the graceful shutdown.
200
+ It can set `replicas` (default `1`), `environment`, and `image`.
201
+ - `environment` is merged over the role's environment.
202
+ A variable with the same name replaces the role's value.
203
+ - Group replicas add to the role's `replicas`: the example runs six backend pods.
204
+ - Group pods join the role's Service and PodDisruptionBudget.
205
+ - Every pod carries the label `cdk8s-plone.bluedynamics.eu/group`, with the value `default` for the main Deployment.
206
+ The ServiceMonitor transfers it to the metrics, where Prometheus names it `cdk8s_plone_bluedynamics_eu_group`.
207
+ - `name` must be a lowercase DNS label and must not be `default`.
208
+ Renaming a group creates a new Deployment, and the old one stays until you delete it.
209
+ - `groups` works for `frontend` as well.
210
+
211
+ For other settings per group, patch the group's Deployment through `plone.backendGroupDeployments` or `plone.frontendGroupDeployments`, keyed by group name.
212
+
213
+ Groups require that the pod labels from 0.2.5 are rolled out before you upgrade, see {ref}`upgrade-pod-labels`.
214
+
175
215
  ### Escape hatch
176
216
 
177
217
  For fields without a dedicated option, patch the generated objects with [JSON Patch](https://cdk8s.io/docs/latest/basics/escape-hatches).
@@ -124,6 +124,20 @@ export interface PloneDeploymentOptions {
124
124
  * @default - no PDB created
125
125
  */
126
126
  readonly pdb?: PlonePDBOptions;
127
+ /**
128
+ * Pod selector of the PodDisruptionBudget, when it covers pods of further
129
+ * Deployments (groups) besides this one.
130
+ * @default - this Deployment's own selector
131
+ */
132
+ readonly pdbSelector?: {
133
+ [name: string]: string;
134
+ };
135
+ /**
136
+ * Number of pods the PodDisruptionBudget covers, for the rule that a PDB is
137
+ * only created from 2 pods on.
138
+ * @default - `replicas`
139
+ */
140
+ readonly pdbReplicas?: number;
127
141
  /**
128
142
  * Node selector labels for pod scheduling.
129
143
  * @default - no node selector