From 46a5d176792beeaba081048f66a11e98ca97cf3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20J=C4=99drzejewski?= Date: Wed, 9 Aug 2023 13:49:17 +0200 Subject: [PATCH] add web3signer endpoint value, change how endpoint is created based on label and project --- charts/validators/templates/_helpers.tpl | 6 +++++- charts/validators/values.yaml | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/validators/templates/_helpers.tpl b/charts/validators/templates/_helpers.tpl index 1dcee460e..702ae1863 100644 --- a/charts/validators/templates/_helpers.tpl +++ b/charts/validators/templates/_helpers.tpl @@ -117,7 +117,11 @@ Validator graffiti Validator web3signer endpoint */}} {{- define "web3signer" -}} -{{- if $.Values.global.label }}http://web3signer-{{ $.Values.global.label }}-{{ $.Values.global.project }}:6174{{- end }} +{{- if $.Values.web3signerEndpoint }} +http://{{ $.Values.web3signerEndpoint }}:6174 +{{- else }} +http://{{ $.Values.global.project }}-{{ $.Values.global.label }}-web3signer:6174 +{{- end }} {{- end }} {{- define "flatten_list" -}} diff --git a/charts/validators/values.yaml b/charts/validators/values.yaml index c3898cb89..2c35a29f8 100644 --- a/charts/validators/values.yaml +++ b/charts/validators/values.yaml @@ -132,6 +132,9 @@ validatorsNoOfKeys: 100 ## Whether a builder should be used for proposalConfig enableBuilder: true +# If not provided will be crafted based on global.project and global.label +web3signerEndpoint: "" + ## Validators image version ## ref: https://gcr.io/prysmaticlabs/prysm/validator ## ref: https://hub.docker.com/r/sigp/lighthouse