Skip to content

Commit

Permalink
eclair: add support for existing seed
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwiidb committed Aug 18, 2023
1 parent 1eba122 commit 5a06085
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/eclair/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ maintainers:
name: eclair
sources:
- https://github.com/kubernetes/charts
version: 0.8.4
version: 0.9.0
17 changes: 17 additions & 0 deletions charts/eclair/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ spec:
- name: data
mountPath: /data
{{ end }}
{{ if .Values.existingSeed }}
- name: copy-seed
image: busybox
command: ['sh', '-c', 'cat /seed/* >> /data/']
volumeMounts:
- name: seed
mountPath: /seed
- name: data
mountPath: /data
{{ end }}
{{ if .Values.pluginConfig.enabled }}
- name: copy-plugin-config
image: busybox
Expand Down Expand Up @@ -96,6 +106,13 @@ spec:
- secret:
name: {{ .Values.extraConfig.secretName }}
{{ end }}
{{ if .Values.existingSeed }}
- name: seed
projected:
sources:
- secret:
name: {{ .Values.existingSeed }}
{{ end }}
{{ if .Values.pluginConfig.enabled }}
- name: pluginconfig
projected:
Expand Down
9 changes: 9 additions & 0 deletions charts/eclair/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@ pluginConfig:
enabled: false
secretName: eclair-plugin-config

# if specified, must be the name of a secret
# that contains exactly 2 data fields:
# - node_seed.dat -> SECURELY GENERATED 32 RANDOM bytes
# - channel_seed.dat -> SECURELY GENERATED 32 RANDOM bytes
# these will be used as the nodes' seed
# if this is used in conjunction with a postgres database, then no persistent volume mount is needed.
# to generate such a file: dd if=/dev/urandom of=node_seed.dat bs=32 count=1
# existingSeed: eclair-seed-secret

rtl:
enabled: false
eclairExtraConfigFile: eclair-extra.conf
Expand Down

0 comments on commit 5a06085

Please sign in to comment.