Skip to content

Commit 16d6faa

Browse files
committed
extra configmaps for tier 1
1 parent 7d33f03 commit 16d6faa

File tree

4 files changed

+54
-1
lines changed

4 files changed

+54
-1
lines changed

charts/firehose-ethereum/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: firehose-ethereum
33
description: A Helm chart for Kubernetes
44
type: application
5-
version: 1.6.0
5+
version: 1.7.0
66
appVersion: geth-v1.16.5-fh3.0
77
keywords:
88
- firehose

charts/firehose-ethereum/templates/substream-tier-1/deployment.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,17 @@ spec:
6363
volumeMounts:
6464
- name: config-volume
6565
mountPath: /config
66+
{{- range $values.components.substreams.extraConfigMaps }}
67+
- name: {{ .name }}
68+
mountPath: {{ .mountPath }}
69+
{{- end }}
6670
volumes:
6771
- name: config-volume
6872
configMap:
6973
name: {{ .Release.Name }}-{{ $componentName }}-config
74+
{{- range $values.components.substreams.extraConfigMaps }}
75+
- name: {{ .name }}
76+
configMap:
77+
name: {{ .name }}
78+
{{- end }}
7079
{{- end }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{{- $values := $.Values.fullMode }}
2+
{{- $componentName := "substreams-tier-1" }}
3+
{{- $componentLabel := include "firehose-ethereum.componentLabelFor" $componentName }}
4+
{{- if and (eq .Values.mode "full") $values.components.substreams.enabled }}
5+
{{- range $values.components.substreams.extraConfigMaps }}
6+
{{- if .data }}
7+
---
8+
apiVersion: v1
9+
kind: ConfigMap
10+
metadata:
11+
name: {{ .name }}
12+
labels:
13+
{{- include "firehose-ethereum.labels" $ | nindent 4 }}
14+
{{- $componentLabel | nindent 4 }}
15+
data:
16+
{{- toYaml .data | nindent 2 }}
17+
{{- end }}
18+
{{- end }}
19+
{{- end }}
20+

charts/firehose-ethereum/values.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,30 @@ fullMode:
224224
# name: my-configmap
225225
# key: config-key
226226

227+
# -- Extra ConfigMaps to mount as volumes
228+
# Each entry can either reference an existing configmap (name only)
229+
# or create a new one with data (name + data + mountPath)
230+
extraConfigMaps: []
231+
# Example 1: Mount an existing ConfigMap
232+
# - name: my-existing-config
233+
# mountPath: /extra-config
234+
#
235+
# Example 2: Create and mount a new ConfigMap with custom data
236+
# - name: my-json-config
237+
# mountPath: /config/json
238+
# data:
239+
# config.json: |
240+
# {
241+
# "key": "value",
242+
# "nested": {
243+
# "field": "data"
244+
# }
245+
# }
246+
# settings.json: |
247+
# {
248+
# "enabled": true
249+
# }
250+
227251
# -- Resource requests and limits for substreams tier 1
228252
resources: {}
229253
# limits:

0 commit comments

Comments
 (0)