Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[geth] add option for overriding args #316

Merged
merged 1 commit into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading