Skip to content

Commit

Permalink
Merge pull request #183 from ethersphere/geth-swap-initcontainer
Browse files Browse the repository at this point in the history
add extraInitContainer to geth-swap
  • Loading branch information
vandot authored May 26, 2022
2 parents d8d2b8b + 11b7d9f commit 883a50a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
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.3
version: 0.3.4

# 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: 7 additions & 0 deletions charts/geth-swap/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if or .Values.gethSetup .Values.extraInitContainers }}
initContainers:
{{- if .Values.gethSetup }}
- name: geth-setup
image: "{{ include "geth-swap.image" . }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
Expand All @@ -55,6 +57,11 @@ spec:
mountPath: /etc/config
- name: data
mountPath: /root/.ethereum
{{- end }}
{{- if .Values.extraInitContainers }}
{{- toYaml .Values.extraInitContainers | nindent 8 }}
{{- end }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ include "geth-swap.image" . }}"
Expand Down
8 changes: 8 additions & 0 deletions charts/geth-swap/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ imageSetupContract:
tag: latest
pullPolicy: Always

gethSetup: true

geth:
cache: 512
genesis:
Expand Down Expand Up @@ -59,6 +61,12 @@ service:
port: 8545
wsport: 8546

extraInitContainers: []
## Extra init containers to be added to the bee pod.
# - name: extra-init-container
# image: busybox:latest
# command: ['sh', '-c', 'echo hello']

ingress:
enabled: false
annotations: {}
Expand Down

0 comments on commit 883a50a

Please sign in to comment.