-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: allow external cardano-wallet (tls) and cardano-db-sync #856
Conversation
🦙 MegaLinter status: ❌ ERROR
See detailed report in MegaLinter reports |
9b1a053
to
8e8c8d1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, but I cannot test it by reading ;)
Adding diffs from $ diff -u before-values.yaml after-values.yaml
--- before-values.yaml
+++ after-values.yaml
@@ -2,12 +2,13 @@
enabled: true
applicationUrls:
- legacy-preprod.atalaprism.io
platformIngressUrl: internal-useast1-sjd4e.atalaprism.io
consumers: ["key1"]
secrets:
secretStore: prism-v2-dev-sjd4e-us-east-1-externalsecrets
dockerRegistryToken: dev-sjd4e-argocd-github-docker-registry-token
+ cardanoWallet: dev-sjd4e-demeter-preprod-v14-wallet
+ cardanoDbSync: dev-sjd4e-demeter-preprod-v14-dbsync
server:
image:
version: "v1.4.0"
@@ -17,6 +18,9 @@
AUTH_ENABLED: true
AUTH_TOKENS: c0aXYu6PaLqGtZUuzeoc6wLETf74wjlKqixjM
vdr:
- cardanoNamespace: cardano-stack
- cardanoWallet: dev-sjd4e-cardano-wallet
- cardanoNode: atala-cardano-dev-sjd4e-preprod
+ externalResources:
+ db_sync:
+ host: dbsync-v3.demeter.run
+ database: dbsync-preprod
+ wallet:
+ host: 8090-cardano-wallet-preprod-bdj2f7.workloads-m1.demeter.run and rendered helm: $ diff -u before-helm.yaml after-helm.yaml
--- before-helm.yaml
+++ after-helm.yaml
+--- 20:29:57 [41/987]
+# Source: prism-node/templates/configmap-nginx.yaml
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: wallet-nginx-proxy
+data:
+ server-block.conf: |
+ server {
+ listen 8080;
+ location / {
+ resolver 8.8.8.8;
+ proxy_pass https://8090-cardano-wallet-preprod-bdj2f7.workloads-m1.demeter.run$uri$is_args$args;
+ }
+ }
@@ -371,43 +386,39 @@
- name: NODE_CARDANO_CONFIRMATION_BLOCKS
value: "1"
- name: NODE_CARDANO_WALLET_API_HOST
- value: "atala-cardano-dev-sjd4e-preprod.cardano-stack"
+ value: "legacy-prism-preprod-wallet"
- name: NODE_CARDANO_WALLET_ID
valueFrom:
secretKeyRef:
- name: "atala-cardano-dev-sjd4e-preprod-dev-sjd4e-cardano-wallet"
- key: wallet_id
+ name: "dev-sjd4e-demeter-preprod-v14-wallet"
+ key: id
optional: false
- name: NODE_CARDANO_WALLET_PASSPHRASE
valueFrom:
secretKeyRef:
- name: "atala-cardano-dev-sjd4e-preprod-dev-sjd4e-cardano-wallet"
+ name: "dev-sjd4e-demeter-preprod-v14-wallet"
key: passphrase
optional: false
- name: NODE_CARDANO_WALLET_API_PORT
- value: "8090"
+ value: "80"
- name: NODE_CARDANO_PAYMENT_ADDRESS
- valueFrom:
- secretKeyRef:
- name: "atala-cardano-dev-sjd4e-preprod-dev-sjd4e-cardano-wallet"
- key: address
- optional: false
+ value: ""
- name: NODE_CARDANO_DB_SYNC_USERNAME
valueFrom:
secretKeyRef:
- name: "legacy-prism-preprod.cardano.atala-cardano-dev-sjd4e-preprod-postgres-cluster.credentials.postgresql.acid.zalan.do"
+ name: "dev-sjd4e-demeter-preprod-v14-dbsync"
key: username
optional: false
- name: NODE_CARDANO_DB_SYNC_PASSWORD
valueFrom:
secretKeyRef:
- name: "legacy-prism-preprod.cardano.atala-cardano-dev-sjd4e-preprod-postgres-cluster.credentials.postgresql.acid.zalan.do"
+ name: "dev-sjd4e-demeter-preprod-v14-dbsync"
key: password
optional: false
- name: NODE_CARDANO_DB_SYNC_DATABASE
- value: "cardano"
+ value: "dbsync-preprod"
- name: NODE_CARDANO_DB_SYNC_HOST
- value: "atala-cardano-dev-sjd4e-preprod-postgres-cluster.cardano-stack"
+ value: "dbsync-v3.demeter.run"
# Prism Node Variables
- name: NODE_PSQL_USERNAME
valueFrom:
@@ -546,6 +554,57 @@
- extract:
key: dev-sjd4e-argocd-github-docker-registry-token
---
+# Source: prism-node/templates/externalsecret.yaml
+apiVersion: external-secrets.io/v1beta1
+kind: ExternalSecret
+metadata:
+ name: "atala-cardano-dev-preprod-dev-k8s-cardano-wallet"
+ namespace: legacy-prism-preprod
+ labels:
+ app.kubernetes.io/part-of: prism-node
+spec:
+ refreshInterval: "0"
+ secretStoreRef:
+ name: prism-v2-dev-sjd4e-us-east-1-externalsecrets
+ kind: ClusterSecretStore
+ dataFrom:
+ - extract:
+ key: dev-k8s-cardano-wallet
+---
+# Source: prism-node/templates/externalsecret.yaml
+apiVersion: external-secrets.io/v1beta1
+kind: ExternalSecret
+metadata:
+ name: "dev-sjd4e-demeter-preprod-v14-wallet"
+ namespace: legacy-prism-preprod
+ labels:
+ app.kubernetes.io/part-of: prism-node
+spec:
+ refreshInterval: "0"
+ secretStoreRef:
+ name: prism-v2-dev-sjd4e-us-east-1-externalsecrets
+ kind: ClusterSecretStore
+ dataFrom:
+ - extract:
+ key: "dev-sjd4e-demeter-preprod-v14-wallet"
+---
+# Source: prism-node/templates/externalsecret.yaml
+apiVersion: external-secrets.io/v1beta1
+kind: ExternalSecret
+metadata:
+ name: "dev-sjd4e-demeter-preprod-v14-dbsync"
+ namespace: legacy-prism-preprod
+ labels:
+ app.kubernetes.io/part-of: prism-node
+spec:
+ refreshInterval: "0"
+ secretStoreRef:
+ name: prism-v2-dev-sjd4e-us-east-1-externalsecrets
+ kind: ClusterSecretStore
+ dataFrom:
+ - extract:
+ key: "dev-sjd4e-demeter-preprod-v14-dbsync"
+---
# Source: prism-node/templates/postgresql.yaml
apiVersion: "acid.zalan.do/v1"
kind: postgresql |
Signed-off-by: Kranium Gikos Mendoza <kraniumgikos.mendoza@iohk.io>
84f995c
to
0ccfa70
Compare
Fixed Issues
|
Overview
Screenshots
Checklists
Pre-submit checklist:
Pre-merge checklist: