From c9cdd8016f9be05e3e7276c6a73bdb7e1a743509 Mon Sep 17 00:00:00 2001 From: Anthony PHAM Date: Mon, 29 Jul 2024 17:00:41 +0700 Subject: [PATCH] feat(geth): add conditional logic for network and networkid (#563) --- charts/geth/templates/statefulset.yaml | 4 ++++ charts/geth/values.yaml | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/charts/geth/templates/statefulset.yaml b/charts/geth/templates/statefulset.yaml index a81311a88..20cc37a81 100644 --- a/charts/geth/templates/statefulset.yaml +++ b/charts/geth/templates/statefulset.yaml @@ -138,7 +138,11 @@ spec: --override.terminaltotaldifficulty={{ .Values.terminalTotalDifficulty }} {{- end }} --datadir=/data/ethereum + {{- if .Values.global.network }} --{{ .Values.global.network }} + {{- else }} + --networkid {{ .Values.global.networkid }} + {{- end }} {{- range .Values.extraFlags }} {{ . | quote }} {{- end }} diff --git a/charts/geth/values.yaml b/charts/geth/values.yaml index 851ce44b7..8790dc696 100644 --- a/charts/geth/values.yaml +++ b/charts/geth/values.yaml @@ -6,9 +6,20 @@ global: replicaCount: 1 ## Eth2 network ID + ## Use one of the predefined testnets or mainnet: + ## - mainnet (default) + ## - goerli + ## - sepolia + ## - holesky + ## + ## If using a custom network, comment out 'network' and set 'networkid' instead. ## network: mainnet + ## Custom network ID for private or other networks. + ## Only set this if 'network' is not defined. + # networkid: 100 + ## JSON Web Token (JWT) authentication is used to secure the communication ## between the beacon node and execution client. You can generate a JWT using ## a command line tool, for example: