Skip to content

Commit

Permalink
[geth] add option for overriding args (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
VladStarr authored Aug 23, 2024
1 parent 9792619 commit 8cee5c3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dysnix/geth/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: geth
description: Go-ethereum blockchain node Helm Chart

version: 1.0.18
version: 1.0.19
appVersion: v1.14.8

keywords:
Expand Down
5 changes: 5 additions & 0 deletions dysnix/geth/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ spec:
command:
{{- tpl (toYaml .) $ | nindent 10 }}
{{- end }}
{{- if .Values.argsOverride }}
args:
{{- tpl (toYaml .Values.argsOverride) $ | nindent 10 }}
{{- else }}
args:
{{- with .Values.config.eth.network }}
- --{{ . }}
Expand Down Expand Up @@ -153,6 +157,7 @@ spec:
{{- with .Values.extraArgs }}
{{- tpl (toYaml .) $ | nindent 8 }}
{{- end }}
{{- end }}
ports:
- name: http
containerPort: {{ .Values.config.node.http.port }}
Expand Down
6 changes: 6 additions & 0 deletions dysnix/geth/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ enableServiceLinks: false

## Override geth container command (can be templated)
command: []
# - sh
# - -c

## Override geth container args (can be templated)
argsOverride: []
# - sleep infinity

## Extra container arguments (can be templated)
extraArgs: []
Expand Down

0 comments on commit 8cee5c3

Please sign in to comment.