diff --git a/charts/espresso/templates/statefulset.yaml b/charts/espresso/templates/statefulset.yaml index 844c8a0a..dd90c59f 100644 --- a/charts/espresso/templates/statefulset.yaml +++ b/charts/espresso/templates/statefulset.yaml @@ -68,7 +68,11 @@ spec: command: ['/bin/bash', '/scripts/init.sh'] envFrom: - secretRef: - name: eso-espresso-sequencer-secrets-{{ $type }} + {{- if $.Values.externalSecrets.enabled }} + name: {{ $.Values.externalSecrets.name }}-{{ $type }} + {{- else }} + name: k8s-espresso-sequencer-secrets-{{ $type }} + {{- end }} volumeMounts: - name: init-env mountPath: /etc/espresso diff --git a/charts/espresso/values.yaml b/charts/espresso/values.yaml index f697d223..655f4ccf 100644 --- a/charts/espresso/values.yaml +++ b/charts/espresso/values.yaml @@ -77,19 +77,19 @@ nodes: # memory: "12000Mi" # -- Secrets to be used by the node. # The secret key must be the same as the one in the Secret resource or ExternalSecret resource. - secrets: - # -- Sequencer secret key. Must match the secret key in the Secret resource or ExternalSecret resource for the sequencer node secrets. - sequencerSecretKey: "" - # -- Postgres secret key. Must match the secret key in the Secret resource or ExternalSecret resource for the postgres related secrets. - postgresSecretKey: "" - data: [] # secrets: - # data: - # - secretKey: espresso-sequencer-private-keys-normal-asia - # remoteRef: - # key: "espresso-sequencer-private-keys-normal-asia" - # -- Node name to identify the node in the Espresso's Node Validator Dashboard. The node index will be appended to the node name. - nodeName: "" + # # -- Sequencer secret key. Must match the secret key in the Secret resource or ExternalSecret resource for the sequencer node secrets. + # sequencerSecretKey: "" + # # -- Postgres secret key. Must match the secret key in the Secret resource or ExternalSecret resource for the postgres related secrets. + # postgresSecretKey: "" + # data: [] + # # secrets: + # # data: + # # - secretKey: espresso-sequencer-private-keys-normal-asia + # # remoteRef: + # # key: "espresso-sequencer-private-keys-normal-asia" + # # -- Node name to identify the node in the Espresso's Node Validator Dashboard. The node index will be appended to the node name. + # nodeName: "" # nodeName: "nethermind-sequencer-da-" nodes_config: