diff --git a/infrastructure/charts/node/templates/deployment.yaml b/infrastructure/charts/node/templates/deployment.yaml index 63d1294a5..2262c6eb5 100644 --- a/infrastructure/charts/node/templates/deployment.yaml +++ b/infrastructure/charts/node/templates/deployment.yaml @@ -39,6 +39,7 @@ spec: env: - name: NODE_LEDGER value: {{ .Values.server.ledger | quote }} + {{- if eq "cardano" .Values.server.ledger }} - name: NODE_CARDANO_PRISM_GENESIS_BLOCK value: {{ .Values.server.genesisBlock | quote }} - name: NODE_MOVE_SCHEDULED_TO_PENDING_PERIOD @@ -69,7 +70,6 @@ spec: name: "{{ .Values.vdr.cardanoNode }}-{{ .Values.vdr.cardanoWallet }}" key: address optional: false - {{- if eq "cardano" .Values.server.ledger }} - name: NODE_CARDANO_DB_SYNC_USERNAME valueFrom: secretKeyRef: diff --git a/infrastructure/charts/node/templates/externalsecret.yaml b/infrastructure/charts/node/templates/externalsecret.yaml index dad4534bd..4d879bb53 100644 --- a/infrastructure/charts/node/templates/externalsecret.yaml +++ b/infrastructure/charts/node/templates/externalsecret.yaml @@ -21,6 +21,7 @@ spec: --- # Requires wallet to be created (atm it's done through terraform module) +{{- if eq "cardano" .Values.server.ledger }} apiVersion: external-secrets.io/v1beta1 kind: ExternalSecret metadata: @@ -36,3 +37,4 @@ spec: dataFrom: - extract: key: {{ .Values.vdr.cardanoWallet }} +{{- end }}