Skip to content

Commit

Permalink
Fix scripts bug [prysm] (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
antares-sw authored Jul 30, 2024
1 parent 8b1670b commit 0d9ddd7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/prysm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: prysm
version: 5.0.3
version: 5.0.4
appVersion: v5.0.3
kubeVersion: "^1.18.0-0"
description: Go implementation of Ethereum proof of stake.
Expand Down
5 changes: 1 addition & 4 deletions charts/prysm/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ spec:
echo 'p2p-udp-port: {{ include "prysm.p2pPort" . }}' >> /config/config.yaml;
{{- end }}
INDEX=$((${HOSTNAME##*-}+1));
cat data/scripts/execution-endpoints.txt;
EE=$(sed "${INDEX}q;d" /data/scripts/execution-endpoints.txt);
echo "execution-endpoint: ${EE}" >> /config/config.yaml;
echo "Pod will connect to the ${EE} endpoint";
Expand All @@ -103,10 +104,8 @@ spec:
mountPath: /config
- name: data
mountPath: /data
{{- if or (eq .Values.global.network "prater") (eq .Values.global.network "goerli") (eq .Values.global.network "ropsten") (eq .Values.global.network "sepolia") }}
- name: scripts
mountPath: /data/scripts
{{- end }}
{{- if or (eq .Values.global.network "prater") (eq .Values.global.network "goerli") (eq .Values.global.network "ropsten") (eq .Values.global.network "sepolia") }}
- name: download-genesis-state
image: "curlimages/curl:latest"
Expand Down Expand Up @@ -273,11 +272,9 @@ spec:
configMap:
name: {{ include "common.names.fullname" . }}-gnosis
{{- end }}
{{- if or (eq .Values.global.network "prater") (eq .Values.global.network "goerli") (eq .Values.global.network "ropsten") (eq .Values.global.network "sepolia") }}
- name: scripts
configMap:
name: {{ include "common.names.fullname" . }}
{{- end }}
{{- if (not .Values.persistence.enabled) }}
- name: data
emptyDir: {}
Expand Down
1 change: 0 additions & 1 deletion charts/prysm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ totalDifficultyOverride: ""
extraFlags:
# p2p options
- "--p2p-max-peers=160"
- "--enable-peer-scorer"

## Extra annotations for StatefulSet pods
podAnnotations: {}
Expand Down

0 comments on commit 0d9ddd7

Please sign in to comment.