Skip to content

Commit ad8fea9

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

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

infrastructure/charts/node/templates/externalsecret.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ spec:
3838
key: {{ .Values.vdr.cardanoWallet }}
3939

4040
---
41-
# Requires wallet to be created (atm it's done through terraform module)
41+
{{- if and (eq .Values.server.ledger "cardano") (not (empty .Values.vdr.externalResources.wallet.host)) }}
4242
apiVersion: external-secrets.io/v1beta1
4343
kind: ExternalSecret
4444
metadata:
@@ -54,8 +54,9 @@ spec:
5454
dataFrom:
5555
- extract:
5656
key: "{{ .Values.secrets.cardanoWallet }}"
57+
{{- end }}
58+
{{- if and (eq .Values.server.ledger "cardano") (not (empty .Values.vdr.externalResources.db_sync.host)) }}
5759
---
58-
# Requires wallet to be created (atm it's done through terraform module)
5960
apiVersion: external-secrets.io/v1beta1
6061
kind: ExternalSecret
6162
metadata:
@@ -71,3 +72,4 @@ spec:
7172
dataFrom:
7273
- extract:
7374
key: "{{ .Values.secrets.cardanoDbSync }}"
75+
{{- end }}

infrastructure/charts/node/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ database:
4343
vdr:
4444
externalResources:
4545
wallet:
46-
# host:
47-
# payment_address:
46+
host:
47+
payment_address:
4848
# tls always true ATM
4949
tls: true
5050
db_sync:
51-
# host":
52-
# database":
51+
host:
52+
database:
5353
cardanoNode: atala-cardano-dev-preprod
5454
cardanoNamespace: cardano-stack
5555
cardanoWallet: dev-k8s-cardano-wallet

0 commit comments

Comments
 (0)