From 0d9ddd73c2222ef7ead5945f2b291ab1ff7aae97 Mon Sep 17 00:00:00 2001 From: antares-sw <23400824+antares-sw@users.noreply.github.com> Date: Tue, 30 Jul 2024 10:20:04 +0300 Subject: [PATCH] Fix scripts bug [prysm] (#565) --- charts/prysm/Chart.yaml | 2 +- charts/prysm/templates/statefulset.yaml | 5 +---- charts/prysm/values.yaml | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/charts/prysm/Chart.yaml b/charts/prysm/Chart.yaml index f50a2f749..184f07017 100644 --- a/charts/prysm/Chart.yaml +++ b/charts/prysm/Chart.yaml @@ -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. diff --git a/charts/prysm/templates/statefulset.yaml b/charts/prysm/templates/statefulset.yaml index 60c77d5b7..62a212383 100644 --- a/charts/prysm/templates/statefulset.yaml +++ b/charts/prysm/templates/statefulset.yaml @@ -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"; @@ -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" @@ -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: {} diff --git a/charts/prysm/values.yaml b/charts/prysm/values.yaml index 3933ce289..e594bcb47 100644 --- a/charts/prysm/values.yaml +++ b/charts/prysm/values.yaml @@ -255,7 +255,6 @@ totalDifficultyOverride: "" extraFlags: # p2p options - "--p2p-max-peers=160" - - "--enable-peer-scorer" ## Extra annotations for StatefulSet pods podAnnotations: {}