Skip to content

Commit

Permalink
Merge pull request #195 from ethersphere/geth-swap-improvement
Browse files Browse the repository at this point in the history
set default ethereum-go image and run geth-setup only on first start
  • Loading branch information
vandot authored Jul 12, 2023
2 parents 9782855 + b9bf4f4 commit c94724f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/geth-swap/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.3.8
version: 0.3.9

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
Expand Down
7 changes: 5 additions & 2 deletions charts/geth-swap/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ spec:
- -ac
- >
set -xe;
geth account import --password /dev/null /etc/config/validatorKey || true;
geth init /etc/config/genesis.json || true;
if [ ! -f /root/.ethereum/geth-setup ]; then
geth account import --password /dev/null /etc/config/validatorKey || true;
geth init /etc/config/genesis.json || true;
touch /root/.ethereum/geth-setup
fi
volumeMounts:
- name: geth-config
mountPath: /etc/config
Expand Down
2 changes: 1 addition & 1 deletion charts/geth-swap/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ updateStrategy:

image:
repository: ethereum/client-go
tag: latest
tag: v1.10.18
pullPolicy: IfNotPresent
# digest:

Expand Down

0 comments on commit c94724f

Please sign in to comment.