From 8cee5c3ee4ef83265696ab8b8299f5b15f1d619e Mon Sep 17 00:00:00 2001 From: Vladyslav Deryhin Date: Fri, 23 Aug 2024 13:18:55 +0300 Subject: [PATCH] [geth] add option for overriding args (#316) --- dysnix/geth/Chart.yaml | 2 +- dysnix/geth/templates/statefulset.yaml | 5 +++++ dysnix/geth/values.yaml | 6 ++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/dysnix/geth/Chart.yaml b/dysnix/geth/Chart.yaml index 6647f6e0..effeed3b 100644 --- a/dysnix/geth/Chart.yaml +++ b/dysnix/geth/Chart.yaml @@ -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: diff --git a/dysnix/geth/templates/statefulset.yaml b/dysnix/geth/templates/statefulset.yaml index 704b7f72..58b87f10 100644 --- a/dysnix/geth/templates/statefulset.yaml +++ b/dysnix/geth/templates/statefulset.yaml @@ -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 }} - --{{ . }} @@ -153,6 +157,7 @@ spec: {{- with .Values.extraArgs }} {{- tpl (toYaml .) $ | nindent 8 }} {{- end }} + {{- end }} ports: - name: http containerPort: {{ .Values.config.node.http.port }} diff --git a/dysnix/geth/values.yaml b/dysnix/geth/values.yaml index 84cbc48e..5f0e672d 100644 --- a/dysnix/geth/values.yaml +++ b/dysnix/geth/values.yaml @@ -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: []