Repository navigation
Expand file tree
/
Copy pathvalues.schema.json
More file actions
1107 lines (1107 loc) · 42.4 KB
/
Copy pathvalues.schema.json
File metadata and controls
1107 lines (1107 loc) · 42.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"affinity": {
"description": "Affinity rules for pod scheduling.",
"required": [],
"title": "affinity",
"type": "object"
},
"config": {
"description": "konflate configuration (the non-secret KONFLATE_* environment variables).",
"properties": {
"appClientId": {
"default": "",
"description": "GitHub App client id (**GitHub only**) — the preferred write identity. With `secret.appPrivateKey`, konflate mints short-lived installation tokens instead of carrying a standing PAT; the installation is auto-detected from the repo.",
"title": "appClientId",
"type": "string"
},
"basePath": {
"default": "",
"description": "URL path prefix konflate is served under (e.g. /platform/konflate). Empty = root. Trailing slashes and surrounding whitespace are normalized to match the binary's behavior, and values the binary would reject at boot (missing leading /, traversal segments) fail at template time. The app serves every route on the main listener under this prefix; configure your ingress to forward requests with the prefix preserved.",
"title": "basePath",
"type": "string"
},
"cacheTtl": {
"default": "",
"description": "Advanced: prune source-cache entries unused longer than this (Go duration); bare git mirrors are kept. Empty = default (168h/7d); \"0\" disables the sweep.",
"title": "cacheTtl",
"type": "string"
},
"closedPrMax": {
"default": 25,
"description": "Cap on retained merged PRs (most-recent win); bounds disk + memory. 0 disables the cap (with `closedPrTtl: \"0\"`, merged diffs are kept forever).",
"title": "closedPrMax",
"type": "integer"
},
"closedPrTtl": {
"default": "336h",
"description": "How long a merged PR is kept (Go duration); 0 disables the age cap.",
"title": "closedPrTtl",
"type": "string"
},
"clusterPath": {
"default": "",
"description": "Directory flate renders from; empty = repo root (correct for the standard root-relative layout).",
"title": "clusterPath",
"type": "string"
},
"commentTag": {
"default": "",
"description": "Disambiguates this instance's hidden comment marker from another konflate deployment's when multiple instances (sharing one bot identity, a folder-per-cluster monorepo's normal shape) render the same PR — otherwise the second to post finds and overwrites the first's comment instead of creating its own. Empty falls back to `statusCheckName` (already commonly set to a distinct per-instance name), then to no tag at all — a single-instance setup with neither set is unaffected.",
"title": "commentTag",
"type": "string"
},
"diffTimeout": {
"default": "",
"description": "Hard cap on a single PR render end-to-end (Go duration). Empty = default (10m); \"0\" disables. Lower on untrusted instances.",
"title": "diffTimeout",
"type": "string"
},
"extraEnv": {
"description": "Extra raw env vars merged into the container (advanced).",
"items": {
"required": []
},
"title": "extraEnv",
"type": "array"
},
"fetchTimeout": {
"default": "",
"description": "Advanced: cap on just the git fetch within a render (Go duration); a short bound stops one slow forge fetch from stalling every render. Empty = default (2m); \"0\" disables.",
"title": "fetchTimeout",
"type": "string"
},
"forceGenericProvider": {
"default": "",
"description": "Route a `spec.provider` source (GitRepository/OCIRepository/Bucket set to `gcp`/`aws`/`azure` for cloud IAM auth in the live cluster) through flate's generic SecretRef/`--registry-config` credential path instead of failing — flate can't perform cloud IAM auth offline. Empty = the opposite of `renderForkPrs` (on unless rendering untrusted forks, since this makes flate authenticate with a real credential against whatever host a PR's manifest names). `\"true\"` enables it outright; `\"false\"` disables it even when not rendering forks.",
"title": "forceGenericProvider",
"type": "string"
},
"helmApiVersions": {
"default": "",
"description": "Extra API versions charts see in `.Capabilities.APIVersions`, comma-separated (e.g. `\"resource.k8s.io/v1/DeviceClass\"`). Appended to helm's built-in set, so list only what the target cluster serves beyond the core APIs: a chart gated on a CRD or feature-gated API (`.Capabilities.APIVersions.Has`) otherwise fails or renders differently than in-cluster, since konflate templates offline. Set `\"{{ join \\\",\\\" .Capabilities.APIVersions }}\"` to track the cluster this release installs into (only correct when it is also the deploy target).",
"title": "helmApiVersions",
"type": "string"
},
"helmRenderCacheMb": {
"default": "",
"description": "Advanced: persistent on-disk Helm render cache in MiB, reused across renders/PRs/restarts. Empty = default (1024); \"0\" disables.",
"title": "helmRenderCacheMb",
"type": "string"
},
"helmTemplateCacheMb": {
"default": "",
"description": "Advanced: in-memory Helm template cache in MiB (the biggest CPU saver). Empty = auto (256 ÷ render concurrency, so it doesn't scale with the CPU limit); \"0\" disables.",
"title": "helmTemplateCacheMb",
"type": "string"
},
"imageVerifyTimeout": {
"default": "",
"description": "Timeout for a single registry existence check (see `verifyImages`). Empty = default (5s).",
"title": "imageVerifyTimeout",
"type": "string"
},
"kubeVersion": {
"default": "",
"description": "Kubernetes version charts see as `.Capabilities.KubeVersion`. Empty = the version bundled with the helm SDK konflate was built against, which may be newer than your cluster — a chart gated on the cluster version then renders differently here than in-cluster. Set `\"{{ .Capabilities.KubeVersion.Version }}\"` to track the cluster this release installs into, or pin a literal (e.g. `\"1.33.4\"`).",
"title": "kubeVersion",
"type": "string"
},
"logFormat": {
"default": "json",
"description": "Log format: json or text.",
"title": "logFormat",
"type": "string"
},
"logLevel": {
"default": "info",
"description": "Log level: debug, info, warn, or error.",
"title": "logLevel",
"type": "string"
},
"maxDiffConcurrency": {
"default": 0,
"description": "Max concurrent diff renders; 0 = auto (from the CPU limit, capped at 4).",
"title": "maxDiffConcurrency",
"type": "integer"
},
"maxDiffResources": {
"default": "",
"description": "Cap on resources fully rendered per diff (each carries highlighted rows — the main payload cost); a larger PR is truncated and flagged in the UI, while the impact banner still shows the true total. Empty = default (500); \"0\" disables.",
"title": "maxDiffResources",
"type": "string"
},
"mcp": {
"default": false,
"description": "Serve a read-only [Model Context Protocol](https://modelcontextprotocol.io) endpoint at `/mcp` so an AI agent can query konflate's rendered-diff analysis (open PRs + their summaries). Read-only — the same data as the API, triggering no render or write. Off by default (it's a new surface); secure it at your ingress if you expose it.",
"title": "mcp",
"type": "boolean"
},
"mergeCommand": {
"default": "",
"description": "Optional Go text/template for the copy-to-merge command (only .Number / .Repo). Empty = forge default (gh/glab/tea). konflate never runs it.",
"title": "mergeCommand",
"type": "string"
},
"prCommentTemplate": {
"default": "",
"description": "Optional Go text/template for the PR-comment body, replacing the built-in summary. When set, the chart mounts it (a ConfigMap) and points `KONFLATE_PR_COMMENT_TEMPLATE_FILE` at it. The konflate marker is injected automatically. Context: `.PR`, `.Diff`, `.ReviewURL`, `.Summary` (the default body). Passed verbatim (NOT tpl'd) — it's konflate's own template. See the README.",
"title": "prCommentTemplate",
"type": "string"
},
"prComments": {
"default": false,
"description": "Opt-in: post (and update in place) a PR comment with the rendered summary on each successful render. Needs a write credential and stays off until both are set; independent of `statusChecks`.",
"title": "prComments",
"type": "boolean"
},
"prFilterExpr": {
"default": "",
"description": "CEL expression deciding which PRs konflate renders; must return a bool. Empty = `true` (every open PR). Forks are gated separately by `renderForkPrs`, so editing this can't enable forks. A PR it excludes is listed but hidden. e.g. `pr.labels.exists(l, l.name == \"cluster/production\") \u0026\u0026 !pr.draft`. See the README.",
"title": "prFilterExpr",
"type": "string"
},
"publicUrl": {
"default": "",
"description": "konflate's externally-reachable base URL (e.g. https://konflate.example.com); a posted status/comment links back to it. Empty = posted without a link. `basePath` is appended automatically when it is set and not already present.",
"title": "publicUrl",
"type": "string"
},
"refreshInterval": {
"default": "30m",
"description": "How often each open PR re-renders / the PR list reconciles, as a missed-webhook backstop (Go duration). \"0\" disables periodic refresh (webhooks only); positive values are floored to 1m.",
"title": "refreshInterval",
"type": "string"
},
"renderConcurrency": {
"default": "",
"description": "Advanced: cap on reconcile goroutines within one render. Empty/\"0\" = auto (NumCPU*4).",
"title": "renderConcurrency",
"type": "string"
},
"renderForkPrs": {
"default": false,
"description": "Render fork PRs. ⚠️ A fork runs untrusted external code through flate (SSRF / resource exhaustion). Off by default — forks are listed but hidden until you flip this. Kept separate from `prFilterExpr` so the filter can't accidentally enable them.",
"title": "renderForkPrs",
"type": "boolean"
},
"repo": {
"default": "",
"description": "(required) Forge URI of the repository to review (github://owner/repo, gitlab://group/repo, forgejo://host/owner/repo).",
"title": "repo",
"type": "string"
},
"rerenderInterval": {
"default": "",
"description": "Advanced: how often to re-render an open PR whose head is unchanged, to catch mutable-source drift (Go duration). Empty = default (6h); \"0\" falls back to refreshInterval. Raise it for fully digest-pinned repos.",
"title": "rerenderInterval",
"type": "string"
},
"restrictEgress": {
"default": "",
"description": "Override flate's SSRF egress guard on source fetches (it blocks dials to private / loopback / link-local / cloud-metadata addresses and rejects non-https/ssh git schemes). Empty = follow `renderForkPrs` (on while rendering untrusted forks, off otherwise). `\"true\"` guards every render; `\"false\"` permits private-network sources (e.g. an internal Gitea / OCI registry) even while rendering forks.",
"title": "restrictEgress",
"type": "string"
},
"sourceRetryAttempts": {
"default": "",
"description": "Advanced: tries per source fetch on transient network errors. Empty = default (3); \"1\" disables retry.",
"title": "sourceRetryAttempts",
"type": "string"
},
"statusCheckName": {
"default": "",
"description": "Name the commit status konflate posts under (the required-check name in branch-protection rules). Empty uses the default, \"Konflate\".",
"title": "statusCheckName",
"type": "string"
},
"statusChecks": {
"default": false,
"description": "Opt-in: post a commit status on each rendered PR head. Needs a write credential (`secret.writeToken`, or the GitHub App) and stays off until both are set.",
"title": "statusChecks",
"type": "boolean"
},
"verifyImages": {
"default": false,
"description": "Verify that each container image a PR newly references exists in its registry (a HEAD on the tag/digest), raising a caution for any that is absent — catching a typo'd or not-yet-pushed image before it ImagePullBackOffs in-cluster. Off by default. Only trusted (non-fork) PRs are checked: a fork's images are attacker-chosen (an SSRF vector). For private registries, mount a dockerconfigjson and point `DOCKER_CONFIG` at it via `config.extraEnv` + `volumes`/`volumeMounts` (go-containerregistry's keychain, host-scoped); konflate never reads a manifest's `imagePullSecrets`.",
"title": "verifyImages",
"type": "boolean"
}
},
"required": [],
"title": "config",
"type": "object"
},
"deploymentAnnotations": {
"description": "Annotations added to the Deployment object (e.g. `reloader.stakater.com/auto: \"true\"` to roll the pod when the mounted Secret / PR-comment-template ConfigMap changes). Pod-level annotations go in `podAnnotations`.",
"required": [],
"title": "deploymentAnnotations",
"type": "object"
},
"fullnameOverride": {
"default": "",
"description": "Override the full release name.",
"title": "fullnameOverride",
"type": "string"
},
"global": {
"description": "Global values are values that can be accessed from any chart or subchart by exactly the same name.",
"required": [],
"title": "global",
"type": "object"
},
"httpRoute": {
"description": "Gateway API HTTPRoute — an alternative to `ingress` for exposing the UI; renders one route to the UI service port. Named `httpRoute` (not `route`) to avoid confusion with the OpenShift Route kind.",
"properties": {
"additionalRules": {
"description": "Custom rules prepended before the default rule (templated).",
"items": {
"required": []
},
"title": "additionalRules",
"type": "array"
},
"annotations": {
"description": "HTTPRoute annotations.",
"required": [],
"title": "annotations",
"type": "object"
},
"apiVersion": {
"default": "",
"description": "HTTPRoute apiVersion; empty defaults to gateway.networking.k8s.io/v1.",
"title": "apiVersion",
"type": "string"
},
"enabled": {
"default": false,
"description": "Expose the UI via a Gateway API HTTPRoute (alternative to ingress).",
"title": "enabled",
"type": "boolean"
},
"filters": {
"description": "Filters applied to the default rule.",
"items": {
"required": []
},
"title": "filters",
"type": "array"
},
"hostnames": {
"description": "Hostnames matched against the Host header (templated).",
"items": {
"required": []
},
"title": "hostnames",
"type": "array"
},
"httpsRedirect": {
"default": false,
"description": "Redirect HTTP→HTTPS (301) instead of routing to the backend (needs HTTP+HTTPS listeners).",
"title": "httpsRedirect",
"type": "boolean"
},
"kind": {
"default": "",
"description": "HTTPRoute kind; empty defaults to HTTPRoute.",
"title": "kind",
"type": "string"
},
"labels": {
"description": "HTTPRoute labels.",
"required": [],
"title": "labels",
"type": "object"
},
"matches": {
"description": "Match conditions for the default rule.",
"items": {
"anyOf": [
{
"properties": {
"path": {
"properties": {
"type": {
"default": "PathPrefix",
"title": "type",
"type": "string"
},
"value": {
"default": "/",
"title": "value",
"type": "string"
}
},
"required": [],
"title": "path",
"type": "object"
}
},
"required": [],
"type": "object"
}
],
"required": []
},
"title": "matches",
"type": "array"
},
"parentRefs": {
"description": "Gateways (and listeners) this route attaches to.",
"items": {
"required": []
},
"title": "parentRefs",
"type": "array"
}
},
"required": [],
"title": "httpRoute",
"type": "object"
},
"image": {
"properties": {
"digest": {
"default": "",
"description": "Pin the image by digest (sha256:…); when set, overrides the tag.",
"title": "digest",
"type": "string"
},
"pullPolicy": {
"default": "IfNotPresent",
"description": "Image pull policy.",
"title": "pullPolicy",
"type": "string"
},
"repository": {
"default": "ghcr.io/home-operations/konflate",
"description": "Image repository.",
"title": "repository",
"type": "string"
},
"tag": {
"default": "",
"description": "Overrides the image tag; defaults to the chart appVersion.",
"title": "tag",
"type": "string"
}
},
"required": [],
"title": "image",
"type": "object"
},
"imagePullSecrets": {
"description": "Image pull secrets for private registries.",
"items": {
"required": []
},
"title": "imagePullSecrets",
"type": "array"
},
"ingress": {
"properties": {
"annotations": {
"description": "Ingress annotations.",
"required": [],
"title": "annotations",
"type": "object"
},
"className": {
"default": "",
"description": "IngressClass name.",
"title": "className",
"type": "string"
},
"enabled": {
"default": false,
"description": "Expose the UI via an Ingress.",
"title": "enabled",
"type": "boolean"
},
"hosts": {
"description": "Ingress hosts and their paths.",
"items": {
"anyOf": [
{
"properties": {
"host": {
"default": "konflate.example.com",
"title": "host",
"type": "string"
},
"paths": {
"items": {
"anyOf": [
{
"properties": {
"path": {
"default": "/",
"title": "path",
"type": "string"
},
"pathType": {
"default": "Prefix",
"title": "pathType",
"type": "string"
}
},
"required": [],
"type": "object"
}
],
"required": []
},
"title": "paths",
"type": "array"
}
},
"required": [],
"type": "object"
}
],
"required": []
},
"title": "hosts",
"type": "array"
},
"tls": {
"description": "Ingress TLS configuration.",
"items": {
"required": []
},
"title": "tls",
"type": "array"
}
},
"required": [],
"title": "ingress",
"type": "object"
},
"livenessProbe": {
"description": "Liveness probe. Targets /healthz on the main http port, so it works regardless of the metrics toggle.",
"properties": {
"httpGet": {
"properties": {
"path": {
"default": "/healthz",
"title": "path",
"type": "string"
},
"port": {
"default": "http",
"title": "port",
"type": "string"
}
},
"required": [],
"title": "httpGet",
"type": "object"
},
"initialDelaySeconds": {
"default": 10,
"title": "initialDelaySeconds",
"type": "integer"
},
"periodSeconds": {
"default": 20,
"title": "periodSeconds",
"type": "integer"
}
},
"required": [],
"title": "livenessProbe",
"type": "object"
},
"monitoring": {
"properties": {
"serviceMonitor": {
"properties": {
"annotations": {
"description": "ServiceMonitor annotations.",
"required": [],
"title": "annotations",
"type": "object"
},
"enabled": {
"default": false,
"description": "Create a Prometheus Operator ServiceMonitor (requires its CRDs).",
"title": "enabled",
"type": "boolean"
},
"interval": {
"default": "30s",
"description": "Scrape interval.",
"title": "interval",
"type": "string"
},
"labels": {
"description": "ServiceMonitor labels.",
"required": [],
"title": "labels",
"type": "object"
},
"metricRelabelings": {
"description": "Prometheus metric relabelings.",
"items": {
"required": []
},
"title": "metricRelabelings",
"type": "array"
},
"path": {
"default": "/metrics",
"description": "Metrics path.",
"title": "path",
"type": "string"
},
"relabelings": {
"description": "Prometheus relabelings.",
"items": {
"required": []
},
"title": "relabelings",
"type": "array"
},
"scrapeTimeout": {
"default": "10s",
"description": "Scrape timeout.",
"title": "scrapeTimeout",
"type": "string"
}
},
"required": [],
"title": "serviceMonitor",
"type": "object"
}
},
"required": [],
"title": "monitoring",
"type": "object"
},
"nameOverride": {
"default": "",
"description": "Override the chart name used in resource names.",
"title": "nameOverride",
"type": "string"
},
"networkPolicy": {
"description": "NetworkPolicy for konflate (off by default). konflate must reach the forge API\nplus the OCI/Helm/git sources a PR declares to render, so the policy *shapes*\negress to DNS + HTTPS rather than locking it down — still blocking lateral\naccess to other cluster services on other ports — and limits ingress to\nkonflate's own HTTP + metrics ports. Pick the flavor matching your CNI; the\nCilium/Calico variants render that CNI's CRD, so validate against your cluster.",
"properties": {
"allowDNS": {
"default": true,
"description": "Allow DNS egress (UDP/TCP 53). konflate must resolve forge/registry/git hosts to render, so leave this on unless DNS is handled out-of-band.",
"title": "allowDNS",
"type": "boolean"
},
"egressPorts": {
"description": "TCP ports konflate may egress to fetch sources during a render (forge API + git/OCI/Helm over HTTPS). Add 80 / 22 for plain-HTTP or SSH git sources.",
"items": {
"anyOf": [
{
"type": "integer"
}
],
"required": []
},
"title": "egressPorts",
"type": "array"
},
"enabled": {
"default": false,
"description": "Create a NetworkPolicy for konflate.",
"title": "enabled",
"type": "boolean"
},
"type": {
"default": "default",
"description": "Policy flavor for your CNI: \"default\" (networking.k8s.io/v1 NetworkPolicy), \"cilium\" (CiliumNetworkPolicy), or \"calico\" (projectcalico.org/v3 NetworkPolicy).",
"title": "type",
"type": "string"
}
},
"required": [],
"title": "networkPolicy",
"type": "object"
},
"nodeSelector": {
"description": "Node selector for pod scheduling.",
"required": [],
"title": "nodeSelector",
"type": "object"
},
"persistence": {
"description": "Persist konflate's state across restarts: the flate source caches, the bare git mirror, and the rendered diffs themselves. With diffs persisted, open PRs reload showing their last render (re-rendering only if the head advanced) and the recently-merged shelf survives at all (see `config.closedPr*`). Disabled, everything lives in an emptyDir and is rebuilt or lost on each restart. Recommended for any non-trivial repo.",
"properties": {
"accessModes": {
"description": "PVC access modes.",
"items": {
"anyOf": [
{
"type": "string"
}
],
"required": []
},
"title": "accessModes",
"type": "array"
},
"annotations": {
"description": "PVC annotations.",
"required": [],
"title": "annotations",
"type": "object"
},
"enabled": {
"default": false,
"description": "Persist caches, the git mirror, and rendered diffs across restarts: open PRs reload instantly and the merged shelf survives. Recommended for any non-trivial repo.",
"title": "enabled",
"type": "boolean"
},
"existingClaim": {
"default": "",
"description": "Use an existing PVC instead of creating one.",
"title": "existingClaim",
"type": "string"
},
"size": {
"default": "5Gi",
"description": "PVC size.",
"title": "size",
"type": "string"
},
"storageClass": {
"default": "",
"description": "StorageClass for the created PVC.",
"title": "storageClass",
"type": "string"
}
},
"required": [],
"title": "persistence",
"type": "object"
},
"podAnnotations": {
"description": "Annotations added to the pod.",
"required": [],
"title": "podAnnotations",
"type": "object"
},
"podDisruptionBudget": {
"description": "konflate runs a single replica (in-memory state; see replicaCount), so this guards only against *voluntary* disruption — node drains, autoscaler scale-down.",
"properties": {
"enabled": {
"default": false,
"description": "Create a PodDisruptionBudget. ⚠️ With a single replica, the default `minAvailable: 1` makes a node drain block until you delete the pod yourself; set `maxUnavailable: 1` instead to let drains proceed. Off by default.",
"title": "enabled",
"type": "boolean"
},
"maxUnavailable": {
"default": "",
"description": "Maximum pods that may be unavailable, as a count or percentage; takes precedence over `minAvailable` when set.",
"required": [],
"title": "maxUnavailable",
"type": [
"integer",
"string"
]
},
"minAvailable": {
"default": 1,
"description": "Minimum pods that must stay available, as a count or percentage. Used unless `maxUnavailable` is set.",
"required": [],
"title": "minAvailable",
"type": [
"integer",
"string"
]
}
},
"required": [],
"title": "podDisruptionBudget",
"type": "object"
},
"podLabels": {
"description": "Labels added to the pod.",
"required": [],
"title": "podLabels",
"type": "object"
},
"podSecurityContext": {
"description": "Pod-level securityContext (runs as non-root uid/gid 65532 with the RuntimeDefault seccomp profile).",
"properties": {
"fsGroup": {
"default": 65532,
"title": "fsGroup",
"type": "integer"
},
"fsGroupChangePolicy": {
"default": "OnRootMismatch",
"title": "fsGroupChangePolicy",
"type": "string"
},
"runAsGroup": {
"default": 65532,
"title": "runAsGroup",
"type": "integer"
},
"runAsNonRoot": {
"default": true,
"title": "runAsNonRoot",
"type": "boolean"
},
"runAsUser": {
"default": 65532,
"title": "runAsUser",
"type": "integer"
},
"seccompProfile": {
"properties": {
"type": {
"default": "RuntimeDefault",
"title": "type",
"type": "string"
}
},
"required": [],
"title": "seccompProfile",
"type": "object"
}
},
"required": [],
"title": "podSecurityContext",
"type": "object"
},
"priorityClassName": {
"default": "",
"description": "PriorityClass for the pod, so konflate is less likely to be preempted/evicted under node pressure. Empty uses the cluster default.",
"title": "priorityClassName",
"type": "string"
},
"readinessProbe": {
"description": "Readiness probe. Targets /readyz on the main http port.",
"properties": {
"httpGet": {
"properties": {
"path": {
"default": "/readyz",
"title": "path",
"type": "string"
},
"port": {
"default": "http",
"title": "port",
"type": "string"
}
},
"required": [],
"title": "httpGet",
"type": "object"
},
"initialDelaySeconds": {
"default": 5,
"title": "initialDelaySeconds",
"type": "integer"
},
"periodSeconds": {
"default": 10,
"title": "periodSeconds",
"type": "integer"
}
},
"required": [],
"title": "readinessProbe",
"type": "object"
},
"replicaCount": {
"default": 1,
"description": "Replica count; konflate is single-instance, so 0 or 1 only (a value \u003e1 is rejected at render time).",
"title": "replicaCount",
"type": "integer"
},
"resources": {
"description": "Pod resource requests/limits. The memory limit is the hard ceiling: it drives GOMEMLIMIT (90%) so the GC reclaims before the kernel OOM-kills a runaway render. Default bounds memory out of the box; raise it for very large clusters.",
"properties": {
"limits": {
"properties": {
"memory": {
"default": "1Gi",
"title": "memory",
"type": "string"
}
},
"required": [],
"title": "limits",
"type": "object"
},
"requests": {
"properties": {
"cpu": {
"default": "50m",
"title": "cpu",
"type": "string"
},
"memory": {
"default": "256Mi",
"title": "memory",
"type": "string"
}
},
"required": [],
"title": "requests",
"type": "object"
}
},
"required": [],
"title": "resources",
"type": "object"
},
"secret": {
"description": "Sensitive settings — a forge read token, inbound webhook/push secrets, and the optional write-back credential (all empty = anonymous, read-only mode).",
"properties": {
"appPrivateKey": {
"default": "",
"description": "GitHub App PEM private key (**GitHub only**); the preferred GitHub write credential, used with `config.appClientId`.",
"title": "appPrivateKey",
"type": "string"
},
"existingSecret": {
"default": "",
"description": "Existing Secret holding the KONFLATE_* keys; takes precedence over the inline values below.",
"title": "existingSecret",
"type": "string"
},
"pushToken": {
"default": "",
"description": "Push token; enables POST /api/prs/{n}/refresh (authenticated mode).",
"title": "pushToken",
"type": "string"
},
"token": {
"default": "",
"description": "Forge API token. Empty = anonymous, read-only mode.",
"title": "token",
"type": "string"
},
"webhookSecret": {
"default": "",
"description": "Webhook secret; enables POST /hooks (authenticated mode).",
"title": "webhookSecret",
"type": "string"
},
"writeToken": {
"default": "",
"description": "Write credential for status write-back (commit statuses), separate from `token` so it carries only write scope. The universal option and the only one on GitLab/Forgejo. Needs `config.statusChecks: true` to take effect.",
"title": "writeToken",
"type": "string"
}
},
"required": [],
"title": "secret",
"type": "object"
},
"securityContext": {
"description": "Container securityContext (no privilege escalation, read-only root filesystem, drops ALL capabilities).",
"properties": {
"allowPrivilegeEscalation": {
"default": false,
"title": "allowPrivilegeEscalation",
"type": "boolean"
},
"capabilities": {
"properties": {
"drop": {
"items": {
"anyOf": [
{
"type": "string"
}
],
"required": []
},
"title": "drop",
"type": "array"
}
},
"required": [],
"title": "capabilities",
"type": "object"
},
"readOnlyRootFilesystem": {
"default": true,
"title": "readOnlyRootFilesystem",
"type": "boolean"
}
},
"required": [],
"title": "securityContext",
"type": "object"
},
"service": {
"properties": {
"metricsEnabled": {
"default": true,
"description": "Expose Prometheus metrics at /metrics on metricsPort (KONFLATE_METRICS_ENABLED). Disabling removes the metrics listener, container port, and Service port entirely; health probes are unaffected (they target the http port).",
"title": "metricsEnabled",
"type": "boolean"
},
"metricsPort": {
"default": 8081,
"description": "Metrics listen port (/metrics only), kept off the public port.",
"title": "metricsPort",
"type": "integer"
},
"port": {
"default": 8080,
"description": "UI / API / websocket port; also serves the /healthz and /readyz probes.",
"title": "port",
"type": "integer"
},
"type": {
"default": "ClusterIP",
"description": "Service type.",
"title": "type",
"type": "string"
}
},
"required": [],
"title": "service",
"type": "object"
},
"serviceAccount": {
"properties": {
"annotations": {
"description": "Annotations for the ServiceAccount.",
"required": [],
"title": "annotations",
"type": "object"
},
"automount": {
"default": false,
"description": "Automount the ServiceAccount API token (off by default: konflate talks to forges, not the cluster API).",
"title": "automount",
"type": "boolean"
},
"create": {
"default": true,
"description": "Create a ServiceAccount.",
"title": "create",
"type": "boolean"
},
"name": {
"default": "",
"description": "ServiceAccount name; generated from the release name if empty.",
"title": "name",
"type": "string"
}
},
"required": [],
"title": "serviceAccount",
"type": "object"