Skip to content

Commit 8ce3168

Browse files
committed
feat(ext-proxy): add extraConfigs support for additional config files
Signed-off-by: Ales Verbic <verbotenj@blinklabs.io>
1 parent 10cbf06 commit 8ce3168

4 files changed

Lines changed: 20 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.DS_Store
1+
.DS_Store.worktrees

charts/ext-proxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: ext-proxy
33
description: A Helm chart for managing different proxy configurations for https://github.com/demeter-run
4-
version: 0.0.5
4+
version: 0.0.6
55
appVersion: "0.0.1"
66

77
maintainers:

charts/ext-proxy/templates/configmap.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,10 @@ data:
1919
{{- end }}
2020
{{- end }}
2121
{{- end }}
22+
{{- if hasKey .Values.extraConfigs "tiers.toml" }}
23+
{{- fail "extraConfigs must not contain reserved key 'tiers.toml'" }}
24+
{{- end }}
25+
{{- range $filename := keys .Values.extraConfigs | sortAlpha }}
26+
{{ $filename | quote }}: |
27+
{{ index $.Values.extraConfigs $filename | nindent 4 }}
28+
{{- end }}

charts/ext-proxy/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@ podMonitor:
5353
enabled: false
5454
labels: {}
5555

56+
# Extra config files to include in the ConfigMap alongside tiers.toml
57+
# Each key becomes a filename mounted at /configs/<key>
58+
extraConfigs: {}
59+
# Example:
60+
# cache_rules.toml: |
61+
# [[rules]]
62+
# endpoint = "/blocks/latest"
63+
# duration_s = 300
64+
# routing.toml: |
65+
# default_backend = "dolos"
66+
5667
# Proxy Config
5768
proxyConfig:
5869
tiers:

0 commit comments

Comments
 (0)