From 673dc7f6f164c44bac8a308dfc447cc5217b01d0 Mon Sep 17 00:00:00 2001 From: Nicolas Burtey Date: Mon, 31 Jul 2023 13:17:54 +0100 Subject: [PATCH] chore: remove some legacy phone stuff --- ci/testflight/galoy/main.tf | 21 -------------- .../galoy/testflight-values.yml.tmpl | 29 ------------------- dev/galoy/galoy-values.yml.tmpl | 14 --------- dev/galoy/main.tf | 21 -------------- 4 files changed, 85 deletions(-) diff --git a/ci/testflight/galoy/main.tf b/ci/testflight/galoy/main.tf index d73a8571b4..298e6c3dc0 100644 --- a/ci/testflight/galoy/main.tf +++ b/ci/testflight/galoy/main.tf @@ -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" { @@ -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 @@ -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 }), diff --git a/ci/testflight/galoy/testflight-values.yml.tmpl b/ci/testflight/galoy/testflight-values.yml.tmpl index 6d3c781e28..12f895ca14 100644 --- a/ci/testflight/galoy/testflight-values.yml.tmpl +++ b/ci/testflight/galoy/testflight-values.yml.tmpl @@ -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: diff --git a/dev/galoy/galoy-values.yml.tmpl b/dev/galoy/galoy-values.yml.tmpl index 309ee2d7ec..d1a2611833 100644 --- a/dev/galoy/galoy-values.yml.tmpl +++ b/dev/galoy/galoy-values.yml.tmpl @@ -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: diff --git a/dev/galoy/main.tf b/dev/galoy/main.tf index 1982cc56f2..6081247420 100644 --- a/dev/galoy/main.tf +++ b/dev/galoy/main.tf @@ -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" { @@ -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 }), @@ -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"