Skip to content

Commit

Permalink
fix: init-setenv secretRef
Browse files Browse the repository at this point in the history
  • Loading branch information
AntiD2ta committed Oct 1, 2024
1 parent 911d749 commit 4fa52dd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
6 changes: 5 additions & 1 deletion charts/espresso/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 12 additions & 12 deletions charts/espresso/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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-<region>"

nodes_config:
Expand Down

0 comments on commit 4fa52dd

Please sign in to comment.