@bluedynamics/cdk8s-plone 0.3.2 → 0.3.4

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.
Files changed (73) hide show
  1. package/.jsii +47 -28
  2. package/API.md +28 -3
  3. package/lib/config/plone-vinyl-backend-response.vcl +25 -0
  4. package/lib/config/plone-vinyl-recv-routing-volto.vcl +21 -0
  5. package/lib/config/plone-vinyl-recv.vcl +18 -0
  6. package/{examples/volto → lib}/config/varnish.tpl.vcl +1 -1
  7. package/lib/httpcache.js +1 -1
  8. package/lib/imports/vinyl.bluedynamics.eu.d.ts +398 -66
  9. package/lib/imports/vinyl.bluedynamics.eu.js +169 -17
  10. package/lib/plone.js +1 -1
  11. package/lib/vinylcache.d.ts +21 -0
  12. package/lib/vinylcache.js +21 -2
  13. package/package.json +3 -2
  14. package/.claude/claude.md +0 -39
  15. package/.claude/settings.local.json +0 -31
  16. package/CLAUDE.md +0 -352
  17. package/docs/superpowers/plans/2026-06-12-configurable-service-spec.md +0 -608
  18. package/docs/superpowers/specs/2026-06-12-configurable-service-spec-design.md +0 -192
  19. package/documentation/Makefile +0 -357
  20. package/documentation/README.md +0 -284
  21. package/documentation/mx.ini +0 -3
  22. package/documentation/sources/_static/logo.svg +0 -79
  23. package/documentation/sources/conf.py +0 -145
  24. package/documentation/sources/explanation/architecture.md +0 -336
  25. package/documentation/sources/explanation/cdk8s-workflow.md +0 -66
  26. package/documentation/sources/explanation/features.md +0 -374
  27. package/documentation/sources/explanation/index.md +0 -34
  28. package/documentation/sources/how-to/backup-and-restore.md +0 -107
  29. package/documentation/sources/how-to/configure-env-and-secrets.md +0 -184
  30. package/documentation/sources/how-to/configure-ingress-tls.md +0 -108
  31. package/documentation/sources/how-to/configure-security-context.md +0 -143
  32. package/documentation/sources/how-to/deploy-blicca.md +0 -334
  33. package/documentation/sources/how-to/deploy-volto.md +0 -324
  34. package/documentation/sources/how-to/deploy-with-httpcache.md +0 -224
  35. package/documentation/sources/how-to/deploy-with-vinyl-cache.md +0 -273
  36. package/documentation/sources/how-to/enable-prometheus-monitoring.md +0 -122
  37. package/documentation/sources/how-to/index.md +0 -85
  38. package/documentation/sources/how-to/scale-and-high-availability.md +0 -122
  39. package/documentation/sources/how-to/schedule-pods.md +0 -145
  40. package/documentation/sources/how-to/setup-prerequisites.md +0 -363
  41. package/documentation/sources/how-to/troubleshooting.md +0 -113
  42. package/documentation/sources/how-to/upgrade-and-rollout.md +0 -140
  43. package/documentation/sources/index.md +0 -109
  44. package/documentation/sources/reference/api/index.md +0 -40
  45. package/documentation/sources/reference/configuration-options.md +0 -352
  46. package/documentation/sources/reference/index.md +0 -41
  47. package/documentation/sources/tutorials/01-quick-start.md +0 -165
  48. package/documentation/sources/tutorials/index.md +0 -53
  49. package/examples/blicca/.env.example +0 -20
  50. package/examples/blicca/README.md +0 -339
  51. package/examples/blicca/__snapshots__/main.test.ts.snap +0 -1035
  52. package/examples/blicca/cdk8s.yaml +0 -6
  53. package/examples/blicca/config/varnish.tpl.vcl +0 -217
  54. package/examples/blicca/ingress.ts +0 -217
  55. package/examples/blicca/jest.config.js +0 -11
  56. package/examples/blicca/main.test.ts +0 -18
  57. package/examples/blicca/main.ts +0 -101
  58. package/examples/blicca/package.json +0 -36
  59. package/examples/blicca/postgres.cloudnativepg.ts +0 -63
  60. package/examples/blicca/postgres.plain.ts +0 -115
  61. package/examples/blicca/tsconfig.json +0 -33
  62. package/examples/volto/.env.example +0 -21
  63. package/examples/volto/README.md +0 -292
  64. package/examples/volto/__snapshots__/main.test.ts.snap +0 -1206
  65. package/examples/volto/cdk8s.yaml +0 -6
  66. package/examples/volto/ingress.ts +0 -229
  67. package/examples/volto/jest.config.js +0 -11
  68. package/examples/volto/main.test.ts +0 -18
  69. package/examples/volto/main.ts +0 -105
  70. package/examples/volto/package.json +0 -36
  71. package/examples/volto/postgres.cloudnativepg.ts +0 -63
  72. package/examples/volto/postgres.plain.ts +0 -115
  73. package/examples/volto/tsconfig.json +0 -33
@@ -94,11 +94,22 @@ export interface VinylCacheSpec {
94
94
  */
95
95
  readonly esi?: VinylCacheSpecEsi;
96
96
  /**
97
- * image is the container image for the Varnish pods.
97
+ * flavor selects the cache daemon family: varnish (Varnish Cache) or
98
+ * vinyl (Vinyl Cache). Defaults to varnish.
99
+ *
100
+ * @default varnish.
101
+ * @schema VinylCacheSpec#flavor
102
+ */
103
+ readonly flavor?: VinylCacheSpecFlavor;
104
+ /**
105
+ * image optionally overrides the container image of the cache daemon. It
106
+ * replaces only the daemon image: the exporter and tracing sidecars still
107
+ * follow flavor and version. When empty, the daemon image comes from the
108
+ * runtime catalog.
98
109
  *
99
110
  * @schema VinylCacheSpec#image
100
111
  */
101
- readonly image: string;
112
+ readonly image?: string;
102
113
  /**
103
114
  * invalidation configures cache invalidation methods (PURGE, BAN, xkey).
104
115
  *
@@ -125,6 +136,8 @@ export interface VinylCacheSpec {
125
136
  readonly proxyProtocol?: VinylCacheSpecProxyProtocol;
126
137
  /**
127
138
  * replicas is the desired number of Varnish pods in the cluster.
139
+ * 0 switches the cache off on purpose (phase Stopped); the StatefulSet
140
+ * and the other resources stay in place.
128
141
  *
129
142
  * @schema VinylCacheSpec#replicas
130
143
  */
@@ -200,6 +213,16 @@ export interface VinylCacheSpec {
200
213
  * @schema VinylCacheSpec#vcl
201
214
  */
202
215
  readonly vcl?: VinylCacheSpecVcl;
216
+ /**
217
+ * version is the daemon version to run, for example "9.1.0". It must be
218
+ * listed in the operator's runtime catalog for the chosen flavor. When
219
+ * empty, the catalog's default version for the flavor is used. That default
220
+ * is resolved at reconcile time and not written back to this field, so it
221
+ * follows the chart's default; pin version to stay on a given release.
222
+ *
223
+ * @schema VinylCacheSpec#version
224
+ */
225
+ readonly version?: string;
203
226
  /**
204
227
  * volumeClaimTemplates are appended verbatim to the generated StatefulSet's
205
228
  * spec.volumeClaimTemplates. Each template yields one PVC per replica
@@ -397,6 +420,19 @@ export interface VinylCacheSpecEsi {
397
420
  * Converts an object of type 'VinylCacheSpecEsi' to JSON representation.
398
421
  */
399
422
  export declare function toJson_VinylCacheSpecEsi(obj: VinylCacheSpecEsi | undefined): Record<string, any> | undefined;
423
+ /**
424
+ * flavor selects the cache daemon family: varnish (Varnish Cache) or
425
+ * vinyl (Vinyl Cache). Defaults to varnish.
426
+ *
427
+ * @default varnish.
428
+ * @schema VinylCacheSpecFlavor
429
+ */
430
+ export declare enum VinylCacheSpecFlavor {
431
+ /** varnish */
432
+ VARNISH = "varnish",
433
+ /** vinyl */
434
+ VINYL = "vinyl"
435
+ }
400
436
  /**
401
437
  * invalidation configures cache invalidation methods (PURGE, BAN, xkey).
402
438
  *
@@ -470,6 +506,9 @@ export declare function toJson_VinylCacheSpecMonitoring(obj: VinylCacheSpecMonit
470
506
  export interface VinylCacheSpecPod {
471
507
  /**
472
508
  * affinity configures pod affinity and anti-affinity scheduling rules.
509
+ * When affinity.podAntiAffinity is unset, the operator fills it in from
510
+ * spec.pod.podAntiAffinity and the operator-wide default; nodeAffinity and
511
+ * podAffinity are passed through as given.
473
512
  *
474
513
  * @schema VinylCacheSpecPod#affinity
475
514
  */
@@ -509,6 +548,16 @@ export interface VinylCacheSpecPod {
509
548
  readonly nodeSelector?: {
510
549
  [key: string]: string;
511
550
  };
551
+ /**
552
+ * podAntiAffinity overrides the operator-wide default that spreads the
553
+ * pods of this VinylCache across topology domains. Each field that is set
554
+ * replaces the operator default; unset fields fall back to it. It has no
555
+ * effect when affinity.podAntiAffinity is set, and the admission webhook
556
+ * rejects setting both.
557
+ *
558
+ * @schema VinylCacheSpecPod#podAntiAffinity
559
+ */
560
+ readonly podAntiAffinity?: VinylCacheSpecPodPodAntiAffinity;
512
561
  /**
513
562
  * priorityClassName is the name of the PriorityClass for Varnish pods.
514
563
  *
@@ -691,7 +740,10 @@ export interface VinylCacheSpecStorage {
691
740
  */
692
741
  readonly name: string;
693
742
  /**
694
- * path is the filesystem path for file-type storage.
743
+ * path is the filesystem path for file-type storage. Leave it empty to
744
+ * let the operator provision an emptyDir volume of size (plus a small
745
+ * margin), mount it at /var/lib/vinyl-storage/<name> and request the
746
+ * matching ephemeral-storage. With a path, mount your own volume there.
695
747
  *
696
748
  * @schema VinylCacheSpecStorage#path
697
749
  */
@@ -855,13 +907,6 @@ export interface VinylCacheSpecBackendsConnectionParameters {
855
907
  * @schema VinylCacheSpecBackendsConnectionParameters#firstByteTimeout
856
908
  */
857
909
  readonly firstByteTimeout?: string;
858
- /**
859
- * idleTimeout is the maximum time an idle connection may be reused. Should be less
860
- * than the backend's keep-alive timeout to avoid 503 races.
861
- *
862
- * @schema VinylCacheSpecBackendsConnectionParameters#idleTimeout
863
- */
864
- readonly idleTimeout?: string;
865
910
  /**
866
911
  * maxConnections is the maximum number of concurrent connections to the backend.
867
912
  *
@@ -928,8 +973,9 @@ export interface VinylCacheSpecBackendsProbe {
928
973
  readonly interval?: string;
929
974
  /**
930
975
  * threshold is the minimum number of successful probes within the window for the backend
931
- * to be considered healthy.
976
+ * to be considered healthy. Defaults to 3; must not exceed window.
932
977
  *
978
+ * @default 3; must not exceed window.
933
979
  * @schema VinylCacheSpecBackendsProbe#threshold
934
980
  */
935
981
  readonly threshold?: number;
@@ -946,8 +992,10 @@ export interface VinylCacheSpecBackendsProbe {
946
992
  */
947
993
  readonly url?: string;
948
994
  /**
949
- * window is the number of most recent probes to consider for threshold evaluation.
995
+ * window is the number of most recent probes to consider for threshold
996
+ * evaluation. Defaults to 5; varnishd allows at most 64.
950
997
  *
998
+ * @default 5; varnishd allows at most 64.
951
999
  * @schema VinylCacheSpecBackendsProbe#window
952
1000
  */
953
1001
  readonly window?: number;
@@ -1040,7 +1088,10 @@ export declare function toJson_VinylCacheSpecClusterRetry(obj: VinylCacheSpecClu
1040
1088
  */
1041
1089
  export interface VinylCacheSpecDirectorHash {
1042
1090
  /**
1043
- * header is the request header name used as the hash key.
1091
+ * header is the request header whose value is the hash key. Without it
1092
+ * the request URL is hashed. It is rendered as req.http.<header>, so it
1093
+ * must be a name VCL accepts there: a letter, then letters, digits, "-"
1094
+ * or "_" (verified with varnishd 8.0 and 9.1).
1044
1095
  *
1045
1096
  * @schema VinylCacheSpecDirectorHash#header
1046
1097
  */
@@ -1067,9 +1118,12 @@ export interface VinylCacheSpecDirectorShard {
1067
1118
  */
1068
1119
  readonly by?: VinylCacheSpecDirectorShardBy;
1069
1120
  /**
1070
- * healthy controls which backends the director considers when selecting a shard.
1071
- * "CHOSEN" (default) only considers the chosen backend healthy; "ALL" requires all
1072
- * backends to be healthy.
1121
+ * healthy is the health policy of the shard director's backend selection.
1122
+ * "CHOSEN" (vmod default) returns a healthy backend if possible; backends
1123
+ * skipped while selecting an alternative are not health-checked. "ALL"
1124
+ * also checks health during alternative selection, so alt=1 is the next
1125
+ * healthy backend. It applies to the default route of un-snippeted
1126
+ * requests and to the cluster-peer director.
1073
1127
  *
1074
1128
  * @schema VinylCacheSpecDirectorShard#healthy
1075
1129
  */
@@ -1230,10 +1284,9 @@ export interface VinylCacheSpecMonitoringExporter {
1230
1284
  */
1231
1285
  readonly enabled?: boolean;
1232
1286
  /**
1233
- * image overrides the exporter image. Defaults to
1234
- * ghcr.io/bluedynamics/varnish-exporter:1.6.1-varnish9.1.0.
1287
+ * image overrides the exporter image of the runtime catalog entry that
1288
+ * matches spec.flavor and spec.version.
1235
1289
  *
1236
- * @default ghcr.io/bluedynamics/varnish-exporter:1.6.1-varnish9.1.0.
1237
1290
  * @schema VinylCacheSpecMonitoringExporter#image
1238
1291
  */
1239
1292
  readonly image?: VinylCacheSpecMonitoringExporterImage;
@@ -1267,6 +1320,12 @@ export interface VinylCacheSpecMonitoringPrometheusRules {
1267
1320
  * @schema VinylCacheSpecMonitoringPrometheusRules#enabled
1268
1321
  */
1269
1322
  readonly enabled?: boolean;
1323
+ /**
1324
+ * lowHitRatio tunes the VinylCacheLowHitRatio alert of this cache's rule.
1325
+ *
1326
+ * @schema VinylCacheSpecMonitoringPrometheusRules#lowHitRatio
1327
+ */
1328
+ readonly lowHitRatio?: VinylCacheSpecMonitoringPrometheusRulesLowHitRatio;
1270
1329
  }
1271
1330
  /**
1272
1331
  * Converts an object of type 'VinylCacheSpecMonitoringPrometheusRules' to JSON representation.
@@ -1298,6 +1357,9 @@ export interface VinylCacheSpecMonitoringServiceMonitor {
1298
1357
  export declare function toJson_VinylCacheSpecMonitoringServiceMonitor(obj: VinylCacheSpecMonitoringServiceMonitor | undefined): Record<string, any> | undefined;
1299
1358
  /**
1300
1359
  * affinity configures pod affinity and anti-affinity scheduling rules.
1360
+ * When affinity.podAntiAffinity is unset, the operator fills it in from
1361
+ * spec.pod.podAntiAffinity and the operator-wide default; nodeAffinity and
1362
+ * podAffinity are passed through as given.
1301
1363
  *
1302
1364
  * @schema VinylCacheSpecPodAffinity
1303
1365
  */
@@ -1364,6 +1426,44 @@ export interface VinylCacheSpecPodEnv {
1364
1426
  * Converts an object of type 'VinylCacheSpecPodEnv' to JSON representation.
1365
1427
  */
1366
1428
  export declare function toJson_VinylCacheSpecPodEnv(obj: VinylCacheSpecPodEnv | undefined): Record<string, any> | undefined;
1429
+ /**
1430
+ * podAntiAffinity overrides the operator-wide default that spreads the
1431
+ * pods of this VinylCache across topology domains. Each field that is set
1432
+ * replaces the operator default; unset fields fall back to it. It has no
1433
+ * effect when affinity.podAntiAffinity is set, and the admission webhook
1434
+ * rejects setting both.
1435
+ *
1436
+ * @schema VinylCacheSpecPodPodAntiAffinity
1437
+ */
1438
+ export interface VinylCacheSpecPodPodAntiAffinity {
1439
+ /**
1440
+ * topologyKey is the node label whose values define the domains to spread
1441
+ * across, e.g. kubernetes.io/hostname or topology.kubernetes.io/zone.
1442
+ *
1443
+ * @schema VinylCacheSpecPodPodAntiAffinity#topologyKey
1444
+ */
1445
+ readonly topologyKey?: string;
1446
+ /**
1447
+ * type selects the rule. "preferred" asks the scheduler to spread the pods
1448
+ * but still schedules them together when it has to; "required" leaves a
1449
+ * pod Pending rather than placing it next to another one of the same
1450
+ * cache; "none" generates no rule.
1451
+ *
1452
+ * @schema VinylCacheSpecPodPodAntiAffinity#type
1453
+ */
1454
+ readonly type?: VinylCacheSpecPodPodAntiAffinityType;
1455
+ /**
1456
+ * weight is the scheduling weight of a preferred rule, 1 to 100. It is
1457
+ * ignored for the other types.
1458
+ *
1459
+ * @schema VinylCacheSpecPodPodAntiAffinity#weight
1460
+ */
1461
+ readonly weight?: number;
1462
+ }
1463
+ /**
1464
+ * Converts an object of type 'VinylCacheSpecPodPodAntiAffinity' to JSON representation.
1465
+ */
1466
+ export declare function toJson_VinylCacheSpecPodPodAntiAffinity(obj: VinylCacheSpecPodPodAntiAffinity | undefined): Record<string, any> | undefined;
1367
1467
  /**
1368
1468
  * The pod this Toleration is attached to tolerates any taint that matches
1369
1469
  * the triple <key,value,effect> using the matching operator <operator>.
@@ -2019,11 +2119,24 @@ export interface VinylCacheSpecVclSnippets {
2019
2119
  */
2020
2120
  readonly vclPurge?: string;
2021
2121
  /**
2022
- * vclRecv is inserted into vcl_recv after generated routing logic, before return().
2122
+ * vclRecv is inserted into vcl_recv after methods other than GET and HEAD
2123
+ * have been passed, before return(hash). It only sees GET and HEAD
2124
+ * requests; route all methods in vclRecvRouting.
2023
2125
  *
2024
2126
  * @schema VinylCacheSpecVclSnippets#vclRecv
2025
2127
  */
2026
2128
  readonly vclRecv?: string;
2129
+ /**
2130
+ * vclRecvRouting is inserted into vcl_recv after PURGE/BAN handling, the
2131
+ * cluster hop and the default backend hint, and before methods other than
2132
+ * GET and HEAD are passed, so it sees requests of every method except
2133
+ * PURGE and BAN. Use it to choose the backend and rewrite the URL, so that
2134
+ * writes are routed like reads. In cluster mode it runs on the owner hop
2135
+ * only.
2136
+ *
2137
+ * @schema VinylCacheSpecVclSnippets#vclRecvRouting
2138
+ */
2139
+ readonly vclRecvRouting?: string;
2027
2140
  /**
2028
2141
  * vclSynth is inserted into vcl_synth.
2029
2142
  *
@@ -2275,7 +2388,10 @@ export declare function toJson_VinylCacheSpecVolumeClaimTemplatesStatus(obj: Vin
2275
2388
  */
2276
2389
  export interface VinylCacheSpecBackendsDirectorHash {
2277
2390
  /**
2278
- * header is the request header name used as the hash key.
2391
+ * header is the request header whose value is the hash key. Without it
2392
+ * the request URL is hashed. It is rendered as req.http.<header>, so it
2393
+ * must be a name VCL accepts there: a letter, then letters, digits, "-"
2394
+ * or "_" (verified with varnishd 8.0 and 9.1).
2279
2395
  *
2280
2396
  * @schema VinylCacheSpecBackendsDirectorHash#header
2281
2397
  */
@@ -2302,9 +2418,12 @@ export interface VinylCacheSpecBackendsDirectorShard {
2302
2418
  */
2303
2419
  readonly by?: VinylCacheSpecBackendsDirectorShardBy;
2304
2420
  /**
2305
- * healthy controls which backends the director considers when selecting a shard.
2306
- * "CHOSEN" (default) only considers the chosen backend healthy; "ALL" requires all
2307
- * backends to be healthy.
2421
+ * healthy is the health policy of the shard director's backend selection.
2422
+ * "CHOSEN" (vmod default) returns a healthy backend if possible; backends
2423
+ * skipped while selecting an alternative are not health-checked. "ALL"
2424
+ * also checks health during alternative selection, so alt=1 is the next
2425
+ * healthy backend. It applies to the default route of un-snippeted
2426
+ * requests and to the cluster-peer director.
2308
2427
  *
2309
2428
  * @schema VinylCacheSpecBackendsDirectorShard#healthy
2310
2429
  */
@@ -2376,9 +2495,12 @@ export declare enum VinylCacheSpecDirectorShardBy {
2376
2495
  URL = "URL"
2377
2496
  }
2378
2497
  /**
2379
- * healthy controls which backends the director considers when selecting a shard.
2380
- * "CHOSEN" (default) only considers the chosen backend healthy; "ALL" requires all
2381
- * backends to be healthy.
2498
+ * healthy is the health policy of the shard director's backend selection.
2499
+ * "CHOSEN" (vmod default) returns a healthy backend if possible; backends
2500
+ * skipped while selecting an alternative are not health-checked. "ALL"
2501
+ * also checks health during alternative selection, so alt=1 is the next
2502
+ * healthy backend. It applies to the default route of un-snippeted
2503
+ * requests and to the cluster-peer director.
2382
2504
  *
2383
2505
  * @schema VinylCacheSpecDirectorShardHealthy
2384
2506
  */
@@ -2389,10 +2511,9 @@ export declare enum VinylCacheSpecDirectorShardHealthy {
2389
2511
  ALL = "ALL"
2390
2512
  }
2391
2513
  /**
2392
- * image overrides the exporter image. Defaults to
2393
- * ghcr.io/bluedynamics/varnish-exporter:1.6.1-varnish9.1.0.
2514
+ * image overrides the exporter image of the runtime catalog entry that
2515
+ * matches spec.flavor and spec.version.
2394
2516
  *
2395
- * @default ghcr.io/bluedynamics/varnish-exporter:1.6.1-varnish9.1.0.
2396
2517
  * @schema VinylCacheSpecMonitoringExporterImage
2397
2518
  */
2398
2519
  export interface VinylCacheSpecMonitoringExporterImage {
@@ -2452,6 +2573,32 @@ export interface VinylCacheSpecMonitoringExporterResources {
2452
2573
  * Converts an object of type 'VinylCacheSpecMonitoringExporterResources' to JSON representation.
2453
2574
  */
2454
2575
  export declare function toJson_VinylCacheSpecMonitoringExporterResources(obj: VinylCacheSpecMonitoringExporterResources | undefined): Record<string, any> | undefined;
2576
+ /**
2577
+ * lowHitRatio tunes the VinylCacheLowHitRatio alert of this cache's rule.
2578
+ *
2579
+ * @schema VinylCacheSpecMonitoringPrometheusRulesLowHitRatio
2580
+ */
2581
+ export interface VinylCacheSpecMonitoringPrometheusRulesLowHitRatio {
2582
+ /**
2583
+ * for is how long the ratio must stay below the threshold before the
2584
+ * alert fires, as a Prometheus duration (e.g. "30s", "15m", "1h30m", "1d").
2585
+ * Not a Go duration: Prometheus also knows d, w and y. Default: 15m.
2586
+ *
2587
+ * @schema VinylCacheSpecMonitoringPrometheusRulesLowHitRatio#for
2588
+ */
2589
+ readonly for?: string;
2590
+ /**
2591
+ * threshold is the hit ratio below which the alert fires, evaluated per
2592
+ * pod. Greater than 0 and at most 1. Default: 0.5.
2593
+ *
2594
+ * @schema VinylCacheSpecMonitoringPrometheusRulesLowHitRatio#threshold
2595
+ */
2596
+ readonly threshold?: number;
2597
+ }
2598
+ /**
2599
+ * Converts an object of type 'VinylCacheSpecMonitoringPrometheusRulesLowHitRatio' to JSON representation.
2600
+ */
2601
+ export declare function toJson_VinylCacheSpecMonitoringPrometheusRulesLowHitRatio(obj: VinylCacheSpecMonitoringPrometheusRulesLowHitRatio | undefined): Record<string, any> | undefined;
2455
2602
  /**
2456
2603
  * Describes node affinity scheduling rules for the pod.
2457
2604
  *
@@ -2605,6 +2752,22 @@ export interface VinylCacheSpecPodEnvValueFrom {
2605
2752
  * Converts an object of type 'VinylCacheSpecPodEnvValueFrom' to JSON representation.
2606
2753
  */
2607
2754
  export declare function toJson_VinylCacheSpecPodEnvValueFrom(obj: VinylCacheSpecPodEnvValueFrom | undefined): Record<string, any> | undefined;
2755
+ /**
2756
+ * type selects the rule. "preferred" asks the scheduler to spread the pods
2757
+ * but still schedules them together when it has to; "required" leaves a
2758
+ * pod Pending rather than placing it next to another one of the same
2759
+ * cache; "none" generates no rule.
2760
+ *
2761
+ * @schema VinylCacheSpecPodPodAntiAffinityType
2762
+ */
2763
+ export declare enum VinylCacheSpecPodPodAntiAffinityType {
2764
+ /** preferred */
2765
+ PREFERRED = "preferred",
2766
+ /** required */
2767
+ REQUIRED = "required",
2768
+ /** none */
2769
+ NONE = "none"
2770
+ }
2608
2771
  /**
2609
2772
  * awsElasticBlockStore represents an AWS Disk resource that is attached to a
2610
2773
  * kubelet's host machine and then exposed to the pod.
@@ -4322,9 +4485,12 @@ export declare enum VinylCacheSpecBackendsDirectorShardBy {
4322
4485
  URL = "URL"
4323
4486
  }
4324
4487
  /**
4325
- * healthy controls which backends the director considers when selecting a shard.
4326
- * "CHOSEN" (default) only considers the chosen backend healthy; "ALL" requires all
4327
- * backends to be healthy.
4488
+ * healthy is the health policy of the shard director's backend selection.
4489
+ * "CHOSEN" (vmod default) returns a healthy backend if possible; backends
4490
+ * skipped while selecting an alternative are not health-checked. "ALL"
4491
+ * also checks health during alternative selection, so alt=1 is the next
4492
+ * healthy backend. It applies to the default route of un-snippeted
4493
+ * requests and to the cluster-peer director.
4328
4494
  *
4329
4495
  * @schema VinylCacheSpecBackendsDirectorShardHealthy
4330
4496
  */
@@ -7217,11 +7383,22 @@ export interface VinylCacheV1Alpha1Spec {
7217
7383
  */
7218
7384
  readonly esi?: VinylCacheV1Alpha1SpecEsi;
7219
7385
  /**
7220
- * image is the container image for the Varnish pods.
7386
+ * flavor selects the cache daemon family: varnish (Varnish Cache) or
7387
+ * vinyl (Vinyl Cache). Defaults to varnish.
7388
+ *
7389
+ * @default varnish.
7390
+ * @schema VinylCacheV1Alpha1Spec#flavor
7391
+ */
7392
+ readonly flavor?: VinylCacheV1Alpha1SpecFlavor;
7393
+ /**
7394
+ * image optionally overrides the container image of the cache daemon. It
7395
+ * replaces only the daemon image: the exporter and tracing sidecars still
7396
+ * follow flavor and version. When empty, the daemon image comes from the
7397
+ * runtime catalog.
7221
7398
  *
7222
7399
  * @schema VinylCacheV1Alpha1Spec#image
7223
7400
  */
7224
- readonly image: string;
7401
+ readonly image?: string;
7225
7402
  /**
7226
7403
  * invalidation configures cache invalidation methods (PURGE, BAN, xkey).
7227
7404
  *
@@ -7248,6 +7425,8 @@ export interface VinylCacheV1Alpha1Spec {
7248
7425
  readonly proxyProtocol?: VinylCacheV1Alpha1SpecProxyProtocol;
7249
7426
  /**
7250
7427
  * replicas is the desired number of Varnish pods in the cluster.
7428
+ * 0 switches the cache off on purpose (phase Stopped); the StatefulSet
7429
+ * and the other resources stay in place.
7251
7430
  *
7252
7431
  * @schema VinylCacheV1Alpha1Spec#replicas
7253
7432
  */
@@ -7323,6 +7502,16 @@ export interface VinylCacheV1Alpha1Spec {
7323
7502
  * @schema VinylCacheV1Alpha1Spec#vcl
7324
7503
  */
7325
7504
  readonly vcl?: VinylCacheV1Alpha1SpecVcl;
7505
+ /**
7506
+ * version is the daemon version to run, for example "9.1.0". It must be
7507
+ * listed in the operator's runtime catalog for the chosen flavor. When
7508
+ * empty, the catalog's default version for the flavor is used. That default
7509
+ * is resolved at reconcile time and not written back to this field, so it
7510
+ * follows the chart's default; pin version to stay on a given release.
7511
+ *
7512
+ * @schema VinylCacheV1Alpha1Spec#version
7513
+ */
7514
+ readonly version?: string;
7326
7515
  /**
7327
7516
  * volumeClaimTemplates are appended verbatim to the generated StatefulSet's
7328
7517
  * spec.volumeClaimTemplates. Each template yields one PVC per replica
@@ -7520,6 +7709,19 @@ export interface VinylCacheV1Alpha1SpecEsi {
7520
7709
  * Converts an object of type 'VinylCacheV1Alpha1SpecEsi' to JSON representation.
7521
7710
  */
7522
7711
  export declare function toJson_VinylCacheV1Alpha1SpecEsi(obj: VinylCacheV1Alpha1SpecEsi | undefined): Record<string, any> | undefined;
7712
+ /**
7713
+ * flavor selects the cache daemon family: varnish (Varnish Cache) or
7714
+ * vinyl (Vinyl Cache). Defaults to varnish.
7715
+ *
7716
+ * @default varnish.
7717
+ * @schema VinylCacheV1Alpha1SpecFlavor
7718
+ */
7719
+ export declare enum VinylCacheV1Alpha1SpecFlavor {
7720
+ /** varnish */
7721
+ VARNISH = "varnish",
7722
+ /** vinyl */
7723
+ VINYL = "vinyl"
7724
+ }
7523
7725
  /**
7524
7726
  * invalidation configures cache invalidation methods (PURGE, BAN, xkey).
7525
7727
  *
@@ -7593,6 +7795,9 @@ export declare function toJson_VinylCacheV1Alpha1SpecMonitoring(obj: VinylCacheV
7593
7795
  export interface VinylCacheV1Alpha1SpecPod {
7594
7796
  /**
7595
7797
  * affinity configures pod affinity and anti-affinity scheduling rules.
7798
+ * When affinity.podAntiAffinity is unset, the operator fills it in from
7799
+ * spec.pod.podAntiAffinity and the operator-wide default; nodeAffinity and
7800
+ * podAffinity are passed through as given.
7596
7801
  *
7597
7802
  * @schema VinylCacheV1Alpha1SpecPod#affinity
7598
7803
  */
@@ -7632,6 +7837,16 @@ export interface VinylCacheV1Alpha1SpecPod {
7632
7837
  readonly nodeSelector?: {
7633
7838
  [key: string]: string;
7634
7839
  };
7840
+ /**
7841
+ * podAntiAffinity overrides the operator-wide default that spreads the
7842
+ * pods of this VinylCache across topology domains. Each field that is set
7843
+ * replaces the operator default; unset fields fall back to it. It has no
7844
+ * effect when affinity.podAntiAffinity is set, and the admission webhook
7845
+ * rejects setting both.
7846
+ *
7847
+ * @schema VinylCacheV1Alpha1SpecPod#podAntiAffinity
7848
+ */
7849
+ readonly podAntiAffinity?: VinylCacheV1Alpha1SpecPodPodAntiAffinity;
7635
7850
  /**
7636
7851
  * priorityClassName is the name of the PriorityClass for Varnish pods.
7637
7852
  *
@@ -7814,7 +8029,10 @@ export interface VinylCacheV1Alpha1SpecStorage {
7814
8029
  */
7815
8030
  readonly name: string;
7816
8031
  /**
7817
- * path is the filesystem path for file-type storage.
8032
+ * path is the filesystem path for file-type storage. Leave it empty to
8033
+ * let the operator provision an emptyDir volume of size (plus a small
8034
+ * margin), mount it at /var/lib/vinyl-storage/<name> and request the
8035
+ * matching ephemeral-storage. With a path, mount your own volume there.
7818
8036
  *
7819
8037
  * @schema VinylCacheV1Alpha1SpecStorage#path
7820
8038
  */
@@ -7978,13 +8196,6 @@ export interface VinylCacheV1Alpha1SpecBackendsConnectionParameters {
7978
8196
  * @schema VinylCacheV1Alpha1SpecBackendsConnectionParameters#firstByteTimeout
7979
8197
  */
7980
8198
  readonly firstByteTimeout?: string;
7981
- /**
7982
- * idleTimeout is the maximum time an idle connection may be reused. Should be less
7983
- * than the backend's keep-alive timeout to avoid 503 races.
7984
- *
7985
- * @schema VinylCacheV1Alpha1SpecBackendsConnectionParameters#idleTimeout
7986
- */
7987
- readonly idleTimeout?: string;
7988
8199
  /**
7989
8200
  * maxConnections is the maximum number of concurrent connections to the backend.
7990
8201
  *
@@ -8051,8 +8262,9 @@ export interface VinylCacheV1Alpha1SpecBackendsProbe {
8051
8262
  readonly interval?: string;
8052
8263
  /**
8053
8264
  * threshold is the minimum number of successful probes within the window for the backend
8054
- * to be considered healthy.
8265
+ * to be considered healthy. Defaults to 3; must not exceed window.
8055
8266
  *
8267
+ * @default 3; must not exceed window.
8056
8268
  * @schema VinylCacheV1Alpha1SpecBackendsProbe#threshold
8057
8269
  */
8058
8270
  readonly threshold?: number;
@@ -8069,8 +8281,10 @@ export interface VinylCacheV1Alpha1SpecBackendsProbe {
8069
8281
  */
8070
8282
  readonly url?: string;
8071
8283
  /**
8072
- * window is the number of most recent probes to consider for threshold evaluation.
8284
+ * window is the number of most recent probes to consider for threshold
8285
+ * evaluation. Defaults to 5; varnishd allows at most 64.
8073
8286
  *
8287
+ * @default 5; varnishd allows at most 64.
8074
8288
  * @schema VinylCacheV1Alpha1SpecBackendsProbe#window
8075
8289
  */
8076
8290
  readonly window?: number;
@@ -8163,7 +8377,10 @@ export declare function toJson_VinylCacheV1Alpha1SpecClusterRetry(obj: VinylCach
8163
8377
  */
8164
8378
  export interface VinylCacheV1Alpha1SpecDirectorHash {
8165
8379
  /**
8166
- * header is the request header name used as the hash key.
8380
+ * header is the request header whose value is the hash key. Without it
8381
+ * the request URL is hashed. It is rendered as req.http.<header>, so it
8382
+ * must be a name VCL accepts there: a letter, then letters, digits, "-"
8383
+ * or "_" (verified with varnishd 8.0 and 9.1).
8167
8384
  *
8168
8385
  * @schema VinylCacheV1Alpha1SpecDirectorHash#header
8169
8386
  */
@@ -8190,9 +8407,12 @@ export interface VinylCacheV1Alpha1SpecDirectorShard {
8190
8407
  */
8191
8408
  readonly by?: VinylCacheV1Alpha1SpecDirectorShardBy;
8192
8409
  /**
8193
- * healthy controls which backends the director considers when selecting a shard.
8194
- * "CHOSEN" (default) only considers the chosen backend healthy; "ALL" requires all
8195
- * backends to be healthy.
8410
+ * healthy is the health policy of the shard director's backend selection.
8411
+ * "CHOSEN" (vmod default) returns a healthy backend if possible; backends
8412
+ * skipped while selecting an alternative are not health-checked. "ALL"
8413
+ * also checks health during alternative selection, so alt=1 is the next
8414
+ * healthy backend. It applies to the default route of un-snippeted
8415
+ * requests and to the cluster-peer director.
8196
8416
  *
8197
8417
  * @schema VinylCacheV1Alpha1SpecDirectorShard#healthy
8198
8418
  */
@@ -8353,10 +8573,9 @@ export interface VinylCacheV1Alpha1SpecMonitoringExporter {
8353
8573
  */
8354
8574
  readonly enabled?: boolean;
8355
8575
  /**
8356
- * image overrides the exporter image. Defaults to
8357
- * ghcr.io/bluedynamics/varnish-exporter:1.6.1-varnish9.1.0.
8576
+ * image overrides the exporter image of the runtime catalog entry that
8577
+ * matches spec.flavor and spec.version.
8358
8578
  *
8359
- * @default ghcr.io/bluedynamics/varnish-exporter:1.6.1-varnish9.1.0.
8360
8579
  * @schema VinylCacheV1Alpha1SpecMonitoringExporter#image
8361
8580
  */
8362
8581
  readonly image?: VinylCacheV1Alpha1SpecMonitoringExporterImage;
@@ -8390,6 +8609,12 @@ export interface VinylCacheV1Alpha1SpecMonitoringPrometheusRules {
8390
8609
  * @schema VinylCacheV1Alpha1SpecMonitoringPrometheusRules#enabled
8391
8610
  */
8392
8611
  readonly enabled?: boolean;
8612
+ /**
8613
+ * lowHitRatio tunes the VinylCacheLowHitRatio alert of this cache's rule.
8614
+ *
8615
+ * @schema VinylCacheV1Alpha1SpecMonitoringPrometheusRules#lowHitRatio
8616
+ */
8617
+ readonly lowHitRatio?: VinylCacheV1Alpha1SpecMonitoringPrometheusRulesLowHitRatio;
8393
8618
  }
8394
8619
  /**
8395
8620
  * Converts an object of type 'VinylCacheV1Alpha1SpecMonitoringPrometheusRules' to JSON representation.
@@ -8421,6 +8646,9 @@ export interface VinylCacheV1Alpha1SpecMonitoringServiceMonitor {
8421
8646
  export declare function toJson_VinylCacheV1Alpha1SpecMonitoringServiceMonitor(obj: VinylCacheV1Alpha1SpecMonitoringServiceMonitor | undefined): Record<string, any> | undefined;
8422
8647
  /**
8423
8648
  * affinity configures pod affinity and anti-affinity scheduling rules.
8649
+ * When affinity.podAntiAffinity is unset, the operator fills it in from
8650
+ * spec.pod.podAntiAffinity and the operator-wide default; nodeAffinity and
8651
+ * podAffinity are passed through as given.
8424
8652
  *
8425
8653
  * @schema VinylCacheV1Alpha1SpecPodAffinity
8426
8654
  */
@@ -8487,6 +8715,44 @@ export interface VinylCacheV1Alpha1SpecPodEnv {
8487
8715
  * Converts an object of type 'VinylCacheV1Alpha1SpecPodEnv' to JSON representation.
8488
8716
  */
8489
8717
  export declare function toJson_VinylCacheV1Alpha1SpecPodEnv(obj: VinylCacheV1Alpha1SpecPodEnv | undefined): Record<string, any> | undefined;
8718
+ /**
8719
+ * podAntiAffinity overrides the operator-wide default that spreads the
8720
+ * pods of this VinylCache across topology domains. Each field that is set
8721
+ * replaces the operator default; unset fields fall back to it. It has no
8722
+ * effect when affinity.podAntiAffinity is set, and the admission webhook
8723
+ * rejects setting both.
8724
+ *
8725
+ * @schema VinylCacheV1Alpha1SpecPodPodAntiAffinity
8726
+ */
8727
+ export interface VinylCacheV1Alpha1SpecPodPodAntiAffinity {
8728
+ /**
8729
+ * topologyKey is the node label whose values define the domains to spread
8730
+ * across, e.g. kubernetes.io/hostname or topology.kubernetes.io/zone.
8731
+ *
8732
+ * @schema VinylCacheV1Alpha1SpecPodPodAntiAffinity#topologyKey
8733
+ */
8734
+ readonly topologyKey?: string;
8735
+ /**
8736
+ * type selects the rule. "preferred" asks the scheduler to spread the pods
8737
+ * but still schedules them together when it has to; "required" leaves a
8738
+ * pod Pending rather than placing it next to another one of the same
8739
+ * cache; "none" generates no rule.
8740
+ *
8741
+ * @schema VinylCacheV1Alpha1SpecPodPodAntiAffinity#type
8742
+ */
8743
+ readonly type?: VinylCacheV1Alpha1SpecPodPodAntiAffinityType;
8744
+ /**
8745
+ * weight is the scheduling weight of a preferred rule, 1 to 100. It is
8746
+ * ignored for the other types.
8747
+ *
8748
+ * @schema VinylCacheV1Alpha1SpecPodPodAntiAffinity#weight
8749
+ */
8750
+ readonly weight?: number;
8751
+ }
8752
+ /**
8753
+ * Converts an object of type 'VinylCacheV1Alpha1SpecPodPodAntiAffinity' to JSON representation.
8754
+ */
8755
+ export declare function toJson_VinylCacheV1Alpha1SpecPodPodAntiAffinity(obj: VinylCacheV1Alpha1SpecPodPodAntiAffinity | undefined): Record<string, any> | undefined;
8490
8756
  /**
8491
8757
  * The pod this Toleration is attached to tolerates any taint that matches
8492
8758
  * the triple <key,value,effect> using the matching operator <operator>.
@@ -9142,11 +9408,24 @@ export interface VinylCacheV1Alpha1SpecVclSnippets {
9142
9408
  */
9143
9409
  readonly vclPurge?: string;
9144
9410
  /**
9145
- * vclRecv is inserted into vcl_recv after generated routing logic, before return().
9411
+ * vclRecv is inserted into vcl_recv after methods other than GET and HEAD
9412
+ * have been passed, before return(hash). It only sees GET and HEAD
9413
+ * requests; route all methods in vclRecvRouting.
9146
9414
  *
9147
9415
  * @schema VinylCacheV1Alpha1SpecVclSnippets#vclRecv
9148
9416
  */
9149
9417
  readonly vclRecv?: string;
9418
+ /**
9419
+ * vclRecvRouting is inserted into vcl_recv after PURGE/BAN handling, the
9420
+ * cluster hop and the default backend hint, and before methods other than
9421
+ * GET and HEAD are passed, so it sees requests of every method except
9422
+ * PURGE and BAN. Use it to choose the backend and rewrite the URL, so that
9423
+ * writes are routed like reads. In cluster mode it runs on the owner hop
9424
+ * only.
9425
+ *
9426
+ * @schema VinylCacheV1Alpha1SpecVclSnippets#vclRecvRouting
9427
+ */
9428
+ readonly vclRecvRouting?: string;
9150
9429
  /**
9151
9430
  * vclSynth is inserted into vcl_synth.
9152
9431
  *
@@ -9398,7 +9677,10 @@ export declare function toJson_VinylCacheV1Alpha1SpecVolumeClaimTemplatesStatus(
9398
9677
  */
9399
9678
  export interface VinylCacheV1Alpha1SpecBackendsDirectorHash {
9400
9679
  /**
9401
- * header is the request header name used as the hash key.
9680
+ * header is the request header whose value is the hash key. Without it
9681
+ * the request URL is hashed. It is rendered as req.http.<header>, so it
9682
+ * must be a name VCL accepts there: a letter, then letters, digits, "-"
9683
+ * or "_" (verified with varnishd 8.0 and 9.1).
9402
9684
  *
9403
9685
  * @schema VinylCacheV1Alpha1SpecBackendsDirectorHash#header
9404
9686
  */
@@ -9425,9 +9707,12 @@ export interface VinylCacheV1Alpha1SpecBackendsDirectorShard {
9425
9707
  */
9426
9708
  readonly by?: VinylCacheV1Alpha1SpecBackendsDirectorShardBy;
9427
9709
  /**
9428
- * healthy controls which backends the director considers when selecting a shard.
9429
- * "CHOSEN" (default) only considers the chosen backend healthy; "ALL" requires all
9430
- * backends to be healthy.
9710
+ * healthy is the health policy of the shard director's backend selection.
9711
+ * "CHOSEN" (vmod default) returns a healthy backend if possible; backends
9712
+ * skipped while selecting an alternative are not health-checked. "ALL"
9713
+ * also checks health during alternative selection, so alt=1 is the next
9714
+ * healthy backend. It applies to the default route of un-snippeted
9715
+ * requests and to the cluster-peer director.
9431
9716
  *
9432
9717
  * @schema VinylCacheV1Alpha1SpecBackendsDirectorShard#healthy
9433
9718
  */
@@ -9499,9 +9784,12 @@ export declare enum VinylCacheV1Alpha1SpecDirectorShardBy {
9499
9784
  URL = "URL"
9500
9785
  }
9501
9786
  /**
9502
- * healthy controls which backends the director considers when selecting a shard.
9503
- * "CHOSEN" (default) only considers the chosen backend healthy; "ALL" requires all
9504
- * backends to be healthy.
9787
+ * healthy is the health policy of the shard director's backend selection.
9788
+ * "CHOSEN" (vmod default) returns a healthy backend if possible; backends
9789
+ * skipped while selecting an alternative are not health-checked. "ALL"
9790
+ * also checks health during alternative selection, so alt=1 is the next
9791
+ * healthy backend. It applies to the default route of un-snippeted
9792
+ * requests and to the cluster-peer director.
9505
9793
  *
9506
9794
  * @schema VinylCacheV1Alpha1SpecDirectorShardHealthy
9507
9795
  */
@@ -9512,10 +9800,9 @@ export declare enum VinylCacheV1Alpha1SpecDirectorShardHealthy {
9512
9800
  ALL = "ALL"
9513
9801
  }
9514
9802
  /**
9515
- * image overrides the exporter image. Defaults to
9516
- * ghcr.io/bluedynamics/varnish-exporter:1.6.1-varnish9.1.0.
9803
+ * image overrides the exporter image of the runtime catalog entry that
9804
+ * matches spec.flavor and spec.version.
9517
9805
  *
9518
- * @default ghcr.io/bluedynamics/varnish-exporter:1.6.1-varnish9.1.0.
9519
9806
  * @schema VinylCacheV1Alpha1SpecMonitoringExporterImage
9520
9807
  */
9521
9808
  export interface VinylCacheV1Alpha1SpecMonitoringExporterImage {
@@ -9575,6 +9862,32 @@ export interface VinylCacheV1Alpha1SpecMonitoringExporterResources {
9575
9862
  * Converts an object of type 'VinylCacheV1Alpha1SpecMonitoringExporterResources' to JSON representation.
9576
9863
  */
9577
9864
  export declare function toJson_VinylCacheV1Alpha1SpecMonitoringExporterResources(obj: VinylCacheV1Alpha1SpecMonitoringExporterResources | undefined): Record<string, any> | undefined;
9865
+ /**
9866
+ * lowHitRatio tunes the VinylCacheLowHitRatio alert of this cache's rule.
9867
+ *
9868
+ * @schema VinylCacheV1Alpha1SpecMonitoringPrometheusRulesLowHitRatio
9869
+ */
9870
+ export interface VinylCacheV1Alpha1SpecMonitoringPrometheusRulesLowHitRatio {
9871
+ /**
9872
+ * for is how long the ratio must stay below the threshold before the
9873
+ * alert fires, as a Prometheus duration (e.g. "30s", "15m", "1h30m", "1d").
9874
+ * Not a Go duration: Prometheus also knows d, w and y. Default: 15m.
9875
+ *
9876
+ * @schema VinylCacheV1Alpha1SpecMonitoringPrometheusRulesLowHitRatio#for
9877
+ */
9878
+ readonly for?: string;
9879
+ /**
9880
+ * threshold is the hit ratio below which the alert fires, evaluated per
9881
+ * pod. Greater than 0 and at most 1. Default: 0.5.
9882
+ *
9883
+ * @schema VinylCacheV1Alpha1SpecMonitoringPrometheusRulesLowHitRatio#threshold
9884
+ */
9885
+ readonly threshold?: number;
9886
+ }
9887
+ /**
9888
+ * Converts an object of type 'VinylCacheV1Alpha1SpecMonitoringPrometheusRulesLowHitRatio' to JSON representation.
9889
+ */
9890
+ export declare function toJson_VinylCacheV1Alpha1SpecMonitoringPrometheusRulesLowHitRatio(obj: VinylCacheV1Alpha1SpecMonitoringPrometheusRulesLowHitRatio | undefined): Record<string, any> | undefined;
9578
9891
  /**
9579
9892
  * Describes node affinity scheduling rules for the pod.
9580
9893
  *
@@ -9728,6 +10041,22 @@ export interface VinylCacheV1Alpha1SpecPodEnvValueFrom {
9728
10041
  * Converts an object of type 'VinylCacheV1Alpha1SpecPodEnvValueFrom' to JSON representation.
9729
10042
  */
9730
10043
  export declare function toJson_VinylCacheV1Alpha1SpecPodEnvValueFrom(obj: VinylCacheV1Alpha1SpecPodEnvValueFrom | undefined): Record<string, any> | undefined;
10044
+ /**
10045
+ * type selects the rule. "preferred" asks the scheduler to spread the pods
10046
+ * but still schedules them together when it has to; "required" leaves a
10047
+ * pod Pending rather than placing it next to another one of the same
10048
+ * cache; "none" generates no rule.
10049
+ *
10050
+ * @schema VinylCacheV1Alpha1SpecPodPodAntiAffinityType
10051
+ */
10052
+ export declare enum VinylCacheV1Alpha1SpecPodPodAntiAffinityType {
10053
+ /** preferred */
10054
+ PREFERRED = "preferred",
10055
+ /** required */
10056
+ REQUIRED = "required",
10057
+ /** none */
10058
+ NONE = "none"
10059
+ }
9731
10060
  /**
9732
10061
  * awsElasticBlockStore represents an AWS Disk resource that is attached to a
9733
10062
  * kubelet's host machine and then exposed to the pod.
@@ -11445,9 +11774,12 @@ export declare enum VinylCacheV1Alpha1SpecBackendsDirectorShardBy {
11445
11774
  URL = "URL"
11446
11775
  }
11447
11776
  /**
11448
- * healthy controls which backends the director considers when selecting a shard.
11449
- * "CHOSEN" (default) only considers the chosen backend healthy; "ALL" requires all
11450
- * backends to be healthy.
11777
+ * healthy is the health policy of the shard director's backend selection.
11778
+ * "CHOSEN" (vmod default) returns a healthy backend if possible; backends
11779
+ * skipped while selecting an alternative are not health-checked. "ALL"
11780
+ * also checks health during alternative selection, so alt=1 is the next
11781
+ * healthy backend. It applies to the default route of un-snippeted
11782
+ * requests and to the cluster-peer director.
11451
11783
  *
11452
11784
  * @schema VinylCacheV1Alpha1SpecBackendsDirectorShardHealthy
11453
11785
  */