From 07fa6d0f515502277d80bebaa9e9737a3bbe983c Mon Sep 17 00:00:00 2001 From: Thomas Burton Date: Mon, 21 Aug 2023 12:17:28 +0200 Subject: [PATCH] fix(node): archive node shouldn't mount keys --- charts/node/templates/node-statefulset.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/charts/node/templates/node-statefulset.yaml b/charts/node/templates/node-statefulset.yaml index f9762d0..e869694 100644 --- a/charts/node/templates/node-statefulset.yaml +++ b/charts/node/templates/node-statefulset.yaml @@ -123,8 +123,10 @@ spec: volumeMounts: - name: data mountPath: {{ .Values.common.basePath }} + {{- if eq .Values.common.role "validator" }} - name: keys mountPath: {{ .Values.common.keys.keysPath }} + {{- end }} volumes: {{- if eq .Values.common.role "validator" }} - name: keys @@ -138,12 +140,11 @@ spec: - key: ethereum-key path: {{ .Values.common.keys.ethereumKeyFileName }} {{- end }} - {{- if .Values.node.persistence.existingClaim }} + {{- if .Values.node.persistence.existingClaim }} - name: data persistentVolumeClaim: claimName: {{ .Values.node.persistence.existingClaim }} - {{- end }} - {{- if eq .Values.node.persistence.existingClaim "" }} + {{- else }} volumeClaimTemplates: - apiVersion: v1 kind: PersistentVolumeClaim