Skip to content

Commit

Permalink
feat(geth): add conditional logic for network and networkid (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
apham0001 authored Jul 29, 2024
1 parent 69b4849 commit c9cdd80
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/geth/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
11 changes: 11 additions & 0 deletions charts/geth/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c9cdd80

Please sign in to comment.