Skip to content

Commit

Permalink
feat: DO NOT MERGE
Browse files Browse the repository at this point in the history
  • Loading branch information
womfoo committed May 6, 2024
1 parent 15e6865 commit a8dcbe9
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 22 deletions.
45 changes: 29 additions & 16 deletions infrastructure/charts/node/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,46 +48,59 @@ spec:
- name: NODE_CARDANO_CONFIRMATION_BLOCKS
value: {{ .Values.server.confirmationBlocks | quote }}
- name: NODE_CARDANO_WALLET_API_HOST
value: "{{ .Values.vdr.cardanoNode }}.{{ .Values.vdr.cardanoNamespace }}"
valueFrom:
secretKeyRef:
name: "{{ .Values.vdr.demeterSecret }}"
key: wallet_api_host
optional: false
- name: NODE_CARDANO_WALLET_ID
valueFrom:
secretKeyRef:
name: "{{ .Values.vdr.cardanoNode }}-{{ .Values.vdr.cardanoWallet }}"
name: "{{ .Values.vdr.demeterSecret }}"
key: wallet_id
optional: false
- name: NODE_CARDANO_WALLET_PASSPHRASE
valueFrom:
secretKeyRef:
name: "{{ .Values.vdr.cardanoNode }}-{{ .Values.vdr.cardanoWallet }}"
key: passphrase
name: "{{ .Values.vdr.demeterSecret }}"
key: wallet_passphrase
optional: false
- name: NODE_CARDANO_WALLET_API_PORT
value: "8090"
valueFrom:
secretKeyRef:
name: "{{ .Values.vdr.demeterSecret }}"
key: wallet_api_port
optional: false
- name: NODE_CARDANO_PAYMENT_ADDRESS
valueFrom:
secretKeyRef:
name: "{{ .Values.vdr.cardanoNode }}-{{ .Values.vdr.cardanoWallet }}"
key: address
name: "{{ .Values.vdr.demeterSecret }}"
key: payment_address
optional: false
{{- if eq "cardano" .Values.server.ledger }}
- name: NODE_CARDANO_DB_SYNC_USERNAME
valueFrom:
secretKeyRef:
name: "{{ .Release.Namespace }}.cardano.{{ .Values.vdr.cardanoNode }}-postgres-cluster.credentials.postgresql.acid.zalan.do"
key: username
name: "{{ .Values.vdr.demeterSecret }}"
key: db_sync_username
optional: false
- name: NODE_CARDANO_DB_SYNC_PASSWORD
valueFrom:
secretKeyRef:
name: "{{ .Release.Namespace }}.cardano.{{ .Values.vdr.cardanoNode }}-postgres-cluster.credentials.postgresql.acid.zalan.do"
key: password
name: "{{ .Values.vdr.demeterSecret }}"
key: db_sync_password
optional: false
- name: NODE_CARDANO_DB_SYNC_DATABASE
value: "cardano"
valueFrom:
secretKeyRef:
name: "{{ .Values.vdr.demeterSecret }}"
key: db_sync_database
optional: false
- name: NODE_CARDANO_DB_SYNC_HOST
value: "{{ .Values.vdr.cardanoNode }}-postgres-cluster.{{ .Values.vdr.cardanoNamespace }}"
{{- end }}
# Prism Node Variables
valueFrom:
secretKeyRef:
name: "{{ .Values.vdr.demeterSecret }}"
key: db_sync_host
optional: false
- name: NODE_PSQL_USERNAME
valueFrom:
secretKeyRef:
Expand Down
4 changes: 2 additions & 2 deletions infrastructure/charts/node/templates/externalsecret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: "{{ .Values.vdr.cardanoNode }}-{{ .Values.vdr.cardanoWallet }}"
name: "{{ .Values.vdr.demeterSecret }}"
namespace: {{ .Release.Namespace }}
labels:
{{ template "labels.common" . }}
Expand All @@ -35,4 +35,4 @@ spec:
kind: ClusterSecretStore
dataFrom:
- extract:
key: {{ .Values.vdr.cardanoWallet }}
key: {{ .Values.vdr.demeterSecret }}
6 changes: 2 additions & 4 deletions infrastructure/charts/node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ secrets:
dockerRegistryToken: chart-base-docker-registry-token

server:
ledger: "in-memory"
ledger: "cardano"
genesisBlock: 424661
moveScheduledToPendingPeriod: 3s
refereshAndSubmitPeriod: 3s
Expand All @@ -39,6 +39,4 @@ database:
numberOfInstances: 2

vdr:
cardanoNode: atala-cardano-dev-preprod
cardanoNamespace: cardano-stack
cardanoWallet: dev-k8s-cardano-wallet
demeterSecret: demeter-preprod-v1

0 comments on commit a8dcbe9

Please sign in to comment.