Skip to content

Commit

Permalink
ci: fix bria credential injection in galoy testflight
Browse files Browse the repository at this point in the history
  • Loading branch information
bodymindarts committed Jun 1, 2023
1 parent 32f330b commit 04cc93c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/galoy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ galoy:
key: password

bria:
host: bria.default.svc.cluster.local
host: bria-api.default.svc.cluster.local
port: 2742
apiKeyExistingSecret:
name: bria-api-key
Expand Down
16 changes: 16 additions & 0 deletions ci/testflight/galoy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,22 @@ resource "kubernetes_secret" "loop2_credentials" {
data = data.kubernetes_secret.loop2_credentials.data
}

data "kubernetes_secret" "bria_credentials" {
metadata {
name = "galoy-bria-creds"
namespace = local.bitcoin_namespace
}
}

resource "kubernetes_secret" "bria_credentials" {
metadata {
name = "bria-api-key"
namespace = kubernetes_namespace.testflight.metadata[0].name
}

data = data.kubernetes_secret.bria_credentials.data
}

resource "kubernetes_secret" "test_accounts" {
metadata {
name = "test-accounts"
Expand Down
4 changes: 3 additions & 1 deletion ci/testflight/galoy/testflight-values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ galoy:
config:
funder: "GaloyFunder"
name: "Galoy Wallet"
bria:
hotWalletName: galoy-staging-hot

bitcoind:
dns: bitcoind.galoy-staging-bitcoin.svc.cluster.local
Expand All @@ -24,7 +26,7 @@ galoy:
dns: lnd2.galoy-staging-bitcoin.svc.cluster.local

bria:
host: bria.galoy-staging-bitcoin.svc.cluster.local
host: bria-api.galoy-staging-bitcoin.svc.cluster.local

dealer:
host: dealer-price.galoy-staging-addons.svc.cluster.local
Expand Down

0 comments on commit 04cc93c

Please sign in to comment.