Skip to content

Commit

Permalink
feat: separate the secrets for the gossip keys for each node (#955)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeromy Cannon <[email protected]>
  • Loading branch information
jeromy-cannon authored Aug 21, 2024
1 parent 828995a commit 01711a6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{ range $index, $node := $.Values.hedera.nodes }}
{{- $hapiAppSecrets := lookup "v1" "Secret" $.Release.Namespace "network-node-hapi-app-secrets" }}
{{- $networkNodeKeySecrets := lookup "v1" "Secret" $.Release.Namespace "network-node-keys-secrets" }}
{{- $networkNodeKeySecretName := (printf "network-%s-keys-secrets" $node.name) }}
{{- $networkNodeKeySecrets := lookup "v1" "Secret" $.Release.Namespace $networkNodeKeySecretName }}
{{- $root := $node.root | default $.Values.defaults.root -}}
{{- $rootExtraEnv := ($root).extraEnv | default $.Values.defaults.root.extraEnv -}}
{{- $rootImage := ($node.root).image | default $.Values.defaults.root.image -}}
Expand Down Expand Up @@ -140,7 +141,7 @@ spec:
{{- if $networkNodeKeySecrets }}
- name: network-node-keys
secret: # TODO pem vs pfx
secretName: network-node-keys-secrets
secretName: {{ $networkNodeKeySecretName }}
optional: true
{{- end }}
containers:
Expand Down

0 comments on commit 01711a6

Please sign in to comment.