Skip to content

Commit

Permalink
chore: remove some legacy phone stuff (#3960)
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Burtey <[email protected]>
  • Loading branch information
nicolasburtey and Nicolas Burtey authored Jul 31, 2023
1 parent 536b333 commit ec1c6e1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 85 deletions.
21 changes: 0 additions & 21 deletions ci/testflight/galoy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ locals {
postgres_database = "price-history"
postgres_username = "price-history"
postgres_password = "price-history"

bankowner_phone = "+59981730222"
bankowner_code = "824197"
}

data "kubernetes_secret" "network" {
Expand Down Expand Up @@ -230,22 +227,6 @@ resource "kubernetes_secret" "bria_credentials" {
data = data.kubernetes_secret.bria_credentials.data
}

resource "kubernetes_secret" "test_accounts" {
metadata {
name = "test-accounts"
namespace = kubernetes_namespace.testflight.metadata[0].name
}
data = {
json = jsonencode([
{
phone = local.bankowner_phone
code = local.bankowner_code
tag = "bankowner"
}
])
}
}

resource "kubernetes_namespace" "testflight" {
metadata {
name = local.testflight_namespace
Expand Down Expand Up @@ -351,8 +332,6 @@ resource "helm_release" "galoy" {

values = [
templatefile("${path.module}/testflight-values.yml.tmpl", {
bankowner_phone : local.bankowner_phone,
bankowner_code : local.bankowner_code,
kratos_pg_host : local.kratos_pg_host,
kratos_callback_api_key : random_password.kratos_callback_api_key.result
}),
Expand Down
29 changes: 0 additions & 29 deletions ci/testflight/galoy/testflight-values.yml.tmpl
Original file line number Diff line number Diff line change
@@ -1,32 +1,3 @@
galoy:
config:
test_accounts:
- ref: A
phone: "${bankowner_phone}"
code: "${bankowner_code}"
role: "bankowner"
username: "bankowner"
needUsdWallet: true
- ref: B
phone: "+50365055543"
code: "182731"
needUsdWallet: true
currency: BTC
- ref: C
phone: "+50365055544"
code: "840172"
phoneMetadataCarrierType: mobile
needUsdWallet: true
currency: BTC
- ref: D
phone: "+50365055545"
code: "105369"
title: business
currency: BTC
- ref: E
phone: "+59981730223" # dealer
code: "824199"
role: dealer
kratos:
kratos:
config:
Expand Down
14 changes: 0 additions & 14 deletions dev/galoy/galoy-values.yml.tmpl
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
galoy:
config:
test_accounts:
- ref: A
phone: "${bankowner_phone}"
code: "${bankowner_code}"
role: "bankowner"
username: "bankowner"
needUsdWallet: true
- ref: B
phone: "+16505554336"
code: "321321"
role: "editor"
username: "editor"
needUsdWallet: true
bria:
host: bria-api.galoy-dev-bitcoin.svc.cluster.local
kratos:
Expand Down
21 changes: 0 additions & 21 deletions dev/galoy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ locals {

galoy-oathkeeper-proxy-host = "galoy-oathkeeper-proxy.${local.galoy_namespace}.svc.cluster.local"
kratos_pg_host = "postgresql.${local.galoy_namespace}.svc.cluster.local"

bankowner_phone = "+59981730222"
bankowner_code = "111111"
}

resource "kubernetes_namespace" "galoy" {
Expand Down Expand Up @@ -285,8 +282,6 @@ resource "helm_release" "galoy" {

values = [
templatefile("${path.module}/galoy-values.yml.tmpl", {
bankowner_phone : local.bankowner_phone,
bankowner_code : local.bankowner_code,
kratos_pg_host : local.kratos_pg_host,
kratos_callback_api_key : random_password.kratos_callback_api_key.result
}),
Expand Down Expand Up @@ -328,22 +323,6 @@ resource "random_password" "kratos_master_user_password" {
special = false
}

resource "kubernetes_secret" "test_accounts" {
metadata {
name = "test-accounts"
namespace = local.galoy_namespace
}
data = {
json = jsonencode([
{
phone = local.bankowner_phone
code = local.bankowner_code
tag = "bankowner"
}
])
}
}

resource "kubernetes_secret" "smoketest" {
metadata {
name = "galoy-smoketest"
Expand Down

0 comments on commit ec1c6e1

Please sign in to comment.