From 84e63f5d320bf357ecbda89d759c223d92375230 Mon Sep 17 00:00:00 2001 From: "alvaro.picazo.haase" Date: Tue, 10 Dec 2024 10:00:27 +0100 Subject: [PATCH] feat(2638): added condition on configmap for no-vault approach Signed-off-by: alvaro.picazo.haase --- .../charts/besu-genesis/templates/genesis-job-init.yaml | 4 ++++ .../charts/besu-node/templates/node-hooks-pre-install.yaml | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/platforms/hyperledger-besu/charts/besu-genesis/templates/genesis-job-init.yaml b/platforms/hyperledger-besu/charts/besu-genesis/templates/genesis-job-init.yaml index 583ddcdc3f5..ca3d3c115f3 100644 --- a/platforms/hyperledger-besu/charts/besu-genesis/templates/genesis-job-init.yaml +++ b/platforms/hyperledger-besu/charts/besu-genesis/templates/genesis-job-init.yaml @@ -37,9 +37,11 @@ spec: volumeMounts: - name: generated-config mountPath: /generated-config +{{- if eq .Values.global.vault.type "hashicorp" }} - name: scripts-volume mountPath: /scripts/bevel-vault.sh subPath: bevel-vault.sh +{{- end }} env: - name: VAULT_ADDR value: "{{ .Values.global.vault.address }}" @@ -257,7 +259,9 @@ spec: volumes: - name: generated-config emptyDir: {} +{{- if eq .Values.global.vault.type "hashicorp" }} - name: scripts-volume configMap: name: bevel-vault-script defaultMode: 0777 +{{- end }} diff --git a/platforms/hyperledger-besu/charts/besu-node/templates/node-hooks-pre-install.yaml b/platforms/hyperledger-besu/charts/besu-node/templates/node-hooks-pre-install.yaml index 6536d8ba4d9..2b5cf41bd20 100644 --- a/platforms/hyperledger-besu/charts/besu-node/templates/node-hooks-pre-install.yaml +++ b/platforms/hyperledger-besu/charts/besu-node/templates/node-hooks-pre-install.yaml @@ -214,5 +214,7 @@ spec: volumes: - name: scripts-volume configMap: +{{- if eq .Values.global.vault.type "hashicorp" }} name: bevel-vault-script - defaultMode: 0777 \ No newline at end of file + defaultMode: 0777 +{{- end }}