Skip to content

Commit 40304a1

Browse files
fix(ethereum): right number of ports when using lighthouse (#1276)
1 parent 83a8efe commit 40304a1

File tree

13 files changed

+263
-328
lines changed

13 files changed

+263
-328
lines changed

arbitrum/helmfile.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#namespace defaults
2-
{{ $_ := set .Values "_namespaceDefaults" ( `{"flavor":"one","one":{"targetNamespace":"arbitrum-one","scaling":{"deployments":1,"arbitrum-classic":{},"arbitrum-nitro":{}},"features":["proxyd-classic","proxyd-nitro","arbitrum-classic","arbitrum-nitro"]},"common":{"scaling":{"deployments":1,"arbitrum-classic":{},"arbitrum-nitro":{}}},"sepolia":{"targetNamespace":"arbitrum-sepolia","scaling":{"deployments":1,"arbitrum-classic":{},"arbitrum-nitro":{}},"features":["proxyd-nitro","arbitrum-nitro"]}}` | fromJson ) }}
2+
{{ $_ := set .Values "_namespaceDefaults" ( `{"common":{"scaling":{"deployments":1,"arbitrum-classic":{},"arbitrum-nitro":{}}},"flavor":"one","one":{"scaling":{"deployments":1,"arbitrum-classic":{},"arbitrum-nitro":{}},"targetNamespace":"arbitrum-one","features":["proxyd-classic","proxyd-nitro","arbitrum-classic","arbitrum-nitro"]},"sepolia":{"scaling":{"deployments":1,"arbitrum-classic":{},"arbitrum-nitro":{}},"targetNamespace":"arbitrum-sepolia","features":["proxyd-nitro","arbitrum-nitro"]}}` | fromJson ) }}
33
#set default flavor when missing
44
{{ if not ( hasKey .Values "flavor" ) }}
55
{{ $_ := set .Values "flavor" "one" }}
@@ -155,8 +155,8 @@ repositories:
155155

156156
templates:
157157
defaults:
158-
namespace: '{{ .Values | get "targetNamespace" $_defaultNamespace }}'
159158
missingFileHandler: Warn
159+
namespace: '{{ .Values | get "targetNamespace" $_defaultNamespace }}'
160160

161161
arbitrum-nitro:
162162
{{- if ( .Values | get "arbitrum-nitro" dict | get "chartUrl" false ) }}

celo/helmfile.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#namespace defaults
2-
{{ $_ := set .Values "_namespaceDefaults" ( `{"flavor":"mainnet","mainnet":{"targetNamespace":"celo-mainnet","features":["proxyd"],"scaling":{"deployments":1,"celo":{}}},"alfajores":{"targetNamespace":"celo-alfajores","features":["proxyd"],"scaling":{"deployments":1,"celo":{}}},"common":{"features":["proxyd"],"scaling":{"deployments":1,"celo":{}}},"baklava":{"targetNamespace":"celo-baklava","features":["proxyd"],"scaling":{"deployments":1,"celo":{}}}}` | fromJson ) }}
2+
{{ $_ := set .Values "_namespaceDefaults" ( `{"common":{"features":["proxyd"],"scaling":{"deployments":1,"celo":{}}},"flavor":"mainnet","mainnet":{"features":["proxyd"],"scaling":{"deployments":1,"celo":{}},"targetNamespace":"celo-mainnet"},"alfajores":{"features":["proxyd"],"scaling":{"deployments":1,"celo":{}},"targetNamespace":"celo-alfajores"},"baklava":{"features":["proxyd"],"scaling":{"deployments":1,"celo":{}},"targetNamespace":"celo-baklava"}}` | fromJson ) }}
33
#set default flavor when missing
44
{{ if not ( hasKey .Values "flavor" ) }}
55
{{ $_ := set .Values "flavor" "mainnet" }}
@@ -155,8 +155,8 @@ repositories:
155155

156156
templates:
157157
defaults:
158-
namespace: '{{ .Values | get "targetNamespace" $_defaultNamespace }}'
159158
missingFileHandler: Warn
159+
namespace: '{{ .Values | get "targetNamespace" $_defaultNamespace }}'
160160

161161
celo:
162162
{{- if ( .Values | get "celo" dict | get "chartUrl" false ) }}

ethereum/helmfile.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#namespace defaults
2-
{{ $_ := set .Values "_namespaceDefaults" ( `{"flavor":"mainnet","mainnet":{"targetNamespace":"eth-mainnet","features":["proxyd"],"scaling":{"deployments":1,"erigon":{},"nimbus":{},"lighthouse":{}}},"holesky":{"targetNamespace":"eth-holesky","features":["proxyd"],"scaling":{"deployments":1,"erigon":{},"nimbus":{},"lighthouse":{}}},"common":{"features":["proxyd"],"scaling":{"deployments":1,"erigon":{},"nimbus":{},"lighthouse":{}}},"sepolia":{"targetNamespace":"eth-sepolia","features":["proxyd"],"scaling":{"deployments":1,"erigon":{},"nimbus":{},"lighthouse":{}}}}` | fromJson ) }}
2+
{{ $_ := set .Values "_namespaceDefaults" ( `{"common":{"features":["proxyd"],"scaling":{"deployments":1,"erigon":{},"nimbus":{},"lighthouse":{}}},"flavor":"mainnet","mainnet":{"features":["proxyd"],"scaling":{"deployments":1,"erigon":{},"nimbus":{},"lighthouse":{}},"targetNamespace":"eth-mainnet"},"holesky":{"features":["proxyd"],"scaling":{"deployments":1,"erigon":{},"nimbus":{},"lighthouse":{}},"targetNamespace":"eth-holesky"},"sepolia":{"features":["proxyd"],"scaling":{"deployments":1,"erigon":{},"nimbus":{},"lighthouse":{}},"targetNamespace":"eth-sepolia"}}` | fromJson ) }}
33
#set default flavor when missing
44
{{ if not ( hasKey .Values "flavor" ) }}
55
{{ $_ := set .Values "flavor" "mainnet" }}
@@ -155,8 +155,8 @@ repositories:
155155

156156
templates:
157157
defaults:
158-
namespace: '{{ .Values | get "targetNamespace" $_defaultNamespace }}'
159158
missingFileHandler: Warn
159+
namespace: '{{ .Values | get "targetNamespace" $_defaultNamespace }}'
160160

161161
erigon:
162162
{{- if ( .Values | get "erigon" dict | get "chartUrl" false ) }}

ethereum/values/_common/erigon.yaml.gotmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ statefulNode:
139139
{{- if (hasKey .Values.scaling "p2pStartPort") }}
140140
p2pNodePort:
141141
enabled: true
142-
port: {{ add (mul (sub $scalingIndex 1) 2) .Values.scaling.p2pStartPort }}
142+
port: {{ add (mul (sub $scalingIndex 1) 3) .Values.scaling.p2pStartPort }}
143143
{{- end }}
144144

145145
rpcdaemon:

gnosis/helmfile.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#namespace defaults
2-
{{ $_ := set .Values "_namespaceDefaults" ( `{"flavor":"mainnet","mainnet":{"targetNamespace":"gnosis-mainnet","features":["erigon","lighthouse","proxyd"],"scaling":{"deployments":1,"erigon":{},"lighthouse":{}}},"common":{"features":["erigon","lighthouse","proxyd"],"scaling":{"deployments":1,"erigon":{},"lighthouse":{}}},"chiado":{"targetNamespace":"gnosis-chiado","features":["erigon","lighthouse","proxyd"],"scaling":{"deployments":1,"erigon":{},"lighthouse":{}}}}` | fromJson ) }}
2+
{{ $_ := set .Values "_namespaceDefaults" ( `{"common":{"features":["erigon","lighthouse","proxyd"],"scaling":{"deployments":1,"erigon":{},"lighthouse":{}}},"flavor":"mainnet","mainnet":{"features":["erigon","lighthouse","proxyd"],"scaling":{"deployments":1,"erigon":{},"lighthouse":{}},"targetNamespace":"gnosis-mainnet"},"chiado":{"features":["erigon","lighthouse","proxyd"],"scaling":{"deployments":1,"erigon":{},"lighthouse":{}},"targetNamespace":"gnosis-chiado"}}` | fromJson ) }}
33
#set default flavor when missing
44
{{ if not ( hasKey .Values "flavor" ) }}
55
{{ $_ := set .Values "flavor" "mainnet" }}
@@ -155,8 +155,8 @@ repositories:
155155

156156
templates:
157157
defaults:
158-
namespace: '{{ .Values | get "targetNamespace" $_defaultNamespace }}'
159158
missingFileHandler: Warn
159+
namespace: '{{ .Values | get "targetNamespace" $_defaultNamespace }}'
160160

161161
erigon:
162162
{{- if ( .Values | get "erigon" dict | get "chartUrl" false ) }}

graph/helmfile.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#namespace defaults
2-
{{ $_ := set .Values "_namespaceDefaults" ( `{"flavor":"arbitrum-one","arbitrum-one":{"targetNamespace":"graph-arbitrum-one","features":["node","network-indexer","toolbox","database","subgraph-radio"]},"common":{"features":["node","network-indexer","toolbox","database","subgraph-radio"]},"arbitrum-sepolia":{"targetNamespace":"graph-arbitrum-sepolia","features":["node","network-indexer","toolbox","database","subgraph-radio"]}}` | fromJson ) }}
2+
{{ $_ := set .Values "_namespaceDefaults" ( `{"common":{"features":["node","network-indexer","toolbox","database","subgraph-radio"]},"flavor":"arbitrum-one","arbitrum-one":{"features":["node","network-indexer","toolbox","database","subgraph-radio"],"targetNamespace":"graph-arbitrum-one"},"arbitrum-sepolia":{"features":["node","network-indexer","toolbox","database","subgraph-radio"],"targetNamespace":"graph-arbitrum-sepolia"}}` | fromJson ) }}
33
#set default flavor when missing
44
{{ if not ( hasKey .Values "flavor" ) }}
55
{{ $_ := set .Values "flavor" "arbitrum-one" }}
@@ -143,8 +143,8 @@ repositories:
143143

144144
templates:
145145
defaults:
146-
namespace: '{{ .Values | get "targetNamespace" $_defaultNamespace }}'
147146
missingFileHandler: Warn
147+
namespace: '{{ .Values | get "targetNamespace" $_defaultNamespace }}'
148148

149149
graph-node:
150150
{{- if ( .Values | get "graph-node" dict | get "chartUrl" false ) }}

ingress/helmfile.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ repositories:
143143

144144
templates:
145145
defaults:
146-
namespace: '{{ .Values | get "targetNamespace" $_defaultNamespace }}'
147146
missingFileHandler: Warn
147+
namespace: '{{ .Values | get "targetNamespace" $_defaultNamespace }}'
148148

149149
ingress-nginx:
150150
{{- if ( .Values | get "ingress-nginx" dict | get "chartUrl" false ) }}

monitoring/helmfile.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ repositories:
143143

144144
templates:
145145
defaults:
146-
namespace: '{{ .Values | get "targetNamespace" $_defaultNamespace }}'
147146
missingFileHandler: Warn
147+
namespace: '{{ .Values | get "targetNamespace" $_defaultNamespace }}'
148148

149149
kube-prometheus-stack:
150150
{{- if ( .Values | get "kube-prometheus-stack" dict | get "chartUrl" false ) }}

polygon/helmfile.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#namespace defaults
2-
{{ $_ := set .Values "_namespaceDefaults" ( `{"flavor":"mainnet","mainnet":{"targetNamespace":"polygon-mainnet","features":["proxyd","erigon","heimdall","heimdall-ha-svc"],"scaling":{"deployments":1,"erigon":{},"heimdall":{}}},"common":{"features":["proxyd","erigon","heimdall","heimdall-ha-svc"],"scaling":{"deployments":1,"erigon":{},"heimdall":{}}},"amoy":{"targetNamespace":"polygon-amoy","features":["proxyd","erigon","heimdall","heimdall-ha-svc"],"scaling":{"deployments":1,"erigon":{},"heimdall":{}}}}` | fromJson ) }}
2+
{{ $_ := set .Values "_namespaceDefaults" ( `{"common":{"features":["proxyd","erigon","heimdall","heimdall-ha-svc"],"scaling":{"deployments":1,"erigon":{},"heimdall":{}}},"flavor":"mainnet","mainnet":{"features":["proxyd","erigon","heimdall","heimdall-ha-svc"],"scaling":{"deployments":1,"erigon":{},"heimdall":{}},"targetNamespace":"polygon-mainnet"},"amoy":{"features":["proxyd","erigon","heimdall","heimdall-ha-svc"],"scaling":{"deployments":1,"erigon":{},"heimdall":{}},"targetNamespace":"polygon-amoy"}}` | fromJson ) }}
33
#set default flavor when missing
44
{{ if not ( hasKey .Values "flavor" ) }}
55
{{ $_ := set .Values "flavor" "mainnet" }}
@@ -155,8 +155,8 @@ repositories:
155155

156156
templates:
157157
defaults:
158-
namespace: '{{ .Values | get "targetNamespace" $_defaultNamespace }}'
159158
missingFileHandler: Warn
159+
namespace: '{{ .Values | get "targetNamespace" $_defaultNamespace }}'
160160

161161
erigon:
162162
{{- if ( .Values | get "erigon" dict | get "chartUrl" false ) }}

postgres-operator/helmfile.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ repositories:
134134

135135
templates:
136136
defaults:
137-
namespace: '{{ .Values | get "targetNamespace" $_defaultNamespace }}'
138137
missingFileHandler: Warn
138+
namespace: '{{ .Values | get "targetNamespace" $_defaultNamespace }}'
139139

140140
postgres-operator:
141141
{{- if ( .Values | get "postgres-operator" dict | get "chartUrl" false ) }}

0 commit comments

Comments
 (0)