Skip to content

Commit 7336196

Browse files
committed
fix: dont create cardano-stack external secret when unspecified
Signed-off-by: Kranium Gikos Mendoza <[email protected]>
1 parent ad8fea9 commit 7336196

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

infrastructure/charts/node/templates/externalsecret.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ spec:
2121

2222
---
2323
# Requires wallet to be created (atm it's done through terraform module)
24+
{{- if and (eq .Values.server.ledger "cardano") (not (empty .Values.vdr.cardanoWallet)) }}
2425
apiVersion: external-secrets.io/v1beta1
2526
kind: ExternalSecret
2627
metadata:
@@ -36,9 +37,9 @@ spec:
3637
dataFrom:
3738
- extract:
3839
key: {{ .Values.vdr.cardanoWallet }}
39-
40-
---
40+
{{- end }}
4141
{{- if and (eq .Values.server.ledger "cardano") (not (empty .Values.vdr.externalResources.wallet.host)) }}
42+
---
4243
apiVersion: external-secrets.io/v1beta1
4344
kind: ExternalSecret
4445
metadata:

0 commit comments

Comments
 (0)