From 07a0f96b36806e5ff0e838c349b424849871d19a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20J=C4=99drzejewski?= Date: Tue, 14 May 2024 16:14:34 +0300 Subject: [PATCH] attempt to fix secrets --- charts/espresso/templates/configmap.yaml | 25 ++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/charts/espresso/templates/configmap.yaml b/charts/espresso/templates/configmap.yaml index 0c1fbf40..f62de776 100644 --- a/charts/espresso/templates/configmap.yaml +++ b/charts/espresso/templates/configmap.yaml @@ -33,15 +33,36 @@ data: index=$(hostname | grep -o -E "[0-9]+$") echo "Detected Pod Index: $index" + nodes: + normal: + replicaCount: 3 + volumeMount: true + externalSecrets: + data: + - secretKey: espresso-sequencer-private-keys-normal-eu + remoteRef: + key: "espresso-sequencer-private-keys-normal" + da: + replicaCount: 0 + sqlStorage: false + externalSecrets: + data: + - secretKey: espresso-sequencer-private-keys-da-eu + remoteRef: + key: "espresso-sequencer-private-keys-da" + - secretKey: espresso-sequencer-postgres-da-eu + remoteRef: + key: "espresso-da-db-nethermind-prod-sequencers" + # Construct the variable names state_key_var="ESPRESSO_SEQUENCER_PRIVATE_STATE_KEY_$index" staking_key_var="ESPRESSO_SEQUENCER_PRIVATE_STAKING_KEY_$index" - key_prefix="espresso-sequencer-private-keys-{{ $type }}=" + key_prefix="{{ index $specs.externalSecrets.data $index | first | quote }}=" {{- if $specs.sqlStorage }} postgres_host_var="ESPRESSO_SEQUENCER_POSTGRES_HOST" postgres_user_var="ESPRESSO_SEQUENCER_POSTGRES_USER" postgres_pass_var="ESPRESSO_SEQUENCER_POSTGRES_PASSWORD" - postgres_prefix="espresso-sequencer-postgres-{{ $type }}=" + postgres_prefix="espresso-sequencer-postgres-{{ index $specs.externalSecrets.data $index | first | quote }}=" {{- end }} # Process each key and write to the .env file