Skip to content

Commit

Permalink
Merge branch 'main' into fix-back
Browse files Browse the repository at this point in the history
  • Loading branch information
tsudmi authored Jul 30, 2024
2 parents 5512231 + 0d9ddd7 commit 2d18dbf
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 18 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
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
2 changes: 1 addition & 1 deletion charts/v3-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: v3-operator
version: 3.3.3
version: 3.3.4
appVersion: v1.3.2
description: Operator hosted service for Stakewise V3 protocol.
type: application
Expand Down
4 changes: 2 additions & 2 deletions charts/v3-operator/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ metadata:
data:
DATA_DIR: "/data"
{{- if .Values.settings.remoteDbConfig.enabled }}
DEPOSIT_DATA_FILE: "/data/{{ .Values.settings.vault }}/deposit_data.json"
DEPOSIT_DATA_FILE: "/data/{{ lower .Values.settings.vault }}/deposit_data.json"
REMOTE_SIGNER_URL: {{ .Values.settings.remoteDbConfig.remoteSignerUrl | quote }}
{{- else }}
DEPOSIT_DATA_FILE: "/data/{{ .Values.settings.vault }}/deposit/deposit_data.json"
DEPOSIT_DATA_FILE: "/data/{{ lower .Values.settings.vault }}/deposit/deposit_data.json"
{{- end }}
DATABASE_DIR: "/data"
VERBOSE: {{ .Values.settings.verbose | quote }}
Expand Down
10 changes: 5 additions & 5 deletions charts/v3-operator/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
- sh
- -c
- >
mkdir -p /data/{{ .Values.settings.vault }}/keystores || true;
mkdir -p /data/{{ lower .Values.settings.vault }}/keystores || true;
chown -R {{ .Values.securityContext.runAsUser }}:{{ .Values.securityContext.runAsUser }} /data
volumeMounts:
- name: data
Expand All @@ -69,7 +69,7 @@ spec:
- --db-url
- {{ .Values.settings.remoteDbConfig.dbUrl }}
- --vault
- {{ .Values.settings.vault }}
- {{ lower .Values.settings.vault }}
- setup-operator
env:
- name: PYTHONPATH
Expand Down Expand Up @@ -113,15 +113,15 @@ spec:
{{- if or .Values.settings.depositDataSecretName .Values.settings.keystoresSecretName .Values.settings.walletSecretName }}
{{- if .Values.settings.depositDataSecretName }}
- name: deposit-data
mountPath: /data/{{ .Values.settings.vault }}/deposit
mountPath: /data/{{ lower .Values.settings.vault }}/deposit
{{- end }}
{{- if .Values.settings.keystoresSecretName }}
- name: keystores
mountPath: /data/{{ .Values.settings.vault }}/keystores
mountPath: /data/{{ lower .Values.settings.vault }}/keystores
{{- end }}
{{- if .Values.settings.walletSecretName }}
- name: wallet
mountPath: /data/{{ .Values.settings.vault }}/wallet
mountPath: /data/{{ lower .Values.settings.vault }}/wallet
{{- end }}
{{- end }}
- name: data
Expand Down
2 changes: 1 addition & 1 deletion charts/web3signer-validators/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,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.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 6.1.6
version: 6.1.7

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion charts/web3signer-validators/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ spec:
- --network
- {{ $root.Values.global.network }}
- --vault
- {{ $root.Values.global.vault }}
- {{ lower $root.Values.global.vault }}
- "--db-url"
- "{{ $root.Values.dbKeystoreUrl }}"
- setup-validator
Expand Down
2 changes: 1 addition & 1 deletion charts/web3signer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,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.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 6.0.5
version: 6.0.6

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion charts/web3signer/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ spec:
- --db-url
- {{ .Values.dbKeystoreUrl }}
- --vault
- {{ .Values.global.vault }}
- {{ lower .Values.global.vault }}
- setup-web3signer
- --encrypt-key
- {{ .Values.decryptionKey }}
Expand Down

0 comments on commit 2d18dbf

Please sign in to comment.