Skip to content

Commit

Permalink
Do not include ws port in service if is 8545 (#8319)
Browse files Browse the repository at this point in the history
### Description

Fix testnet package if wsPort is 8545 (services cannot have same port defined multiple times)
  • Loading branch information
jcortejoso authored and yorhodes committed Aug 11, 2021
1 parent 6dfd536 commit 42b4efd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/helm-charts/testnet/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@ spec:
ports:
- port: 8545
name: rpc
- port: {{ .ws_port | default .Values.geth.ws_port }}
{{- $wsPort := ((.ws_port | default .Values.geth.ws_port) | int) -}}
{{- if ne $wsPort 8545 }}
- port: {{ $wsPort }}
name: ws
{{- end }}
selector:
{{- if .proxy | default false }}
{{- $validatorProxied := printf "%s-validators-%d" .Release.Namespace .validator_index }}
Expand All @@ -82,8 +85,10 @@ spec:
ports:
- port: 8545
name: rpc
{{- if ne $wsPort 8545 }}
- port: {{ .ws_port | default .Values.geth.ws_port }}
name: ws
{{- end }}
selector:
{{- if .proxy | default false }}
{{- $validatorProxied := printf "%s-validators-%d" .Release.Namespace .validator_index }}
Expand Down

0 comments on commit 42b4efd

Please sign in to comment.