diff --git a/terraform/onp_cluster_minecraft_secrets.tf b/terraform/onp_cluster_minecraft_secrets.tf index b173dae53..25dc63bbb 100644 --- a/terraform/onp_cluster_minecraft_secrets.tf +++ b/terraform/onp_cluster_minecraft_secrets.tf @@ -22,9 +22,8 @@ resource "kubernetes_secret" "onp_minecraft_prod_secrets" { } data = { - DISCORDSRV_TOKEN = var.minecraft__discordsrv_bot_token - GAME_DB_PASSWORD = var.minecraft__prod_game_db__password - IDEA_REACTION_DISCORD_TOKEN = var.minecraft__idea_reaction_discord_token + DISCORDSRV_TOKEN = var.minecraft__discordsrv_bot_token + GAME_DB_PASSWORD = var.minecraft__prod_game_db__password } type = "Opaque" diff --git a/terraform/onp_cluster_secrets.tf b/terraform/onp_cluster_secrets.tf index d52328b4f..a43dd01be 100644 --- a/terraform/onp_cluster_secrets.tf +++ b/terraform/onp_cluster_secrets.tf @@ -233,3 +233,16 @@ resource "helm_release" "onp_minecraft__pr_review_mariadb_password" { ] } } + +resource "kubernetes_secret" "idea_reaction_discord_token" { + depends_on = [kubernetes_namespace.onp_seichi_minecraft] + + metadata { + name = "idea-reaction-discord-token" + namespace = "seichi-minecraft" + } + + data = { + IDEA_REACTION_DISCORD_TOKEN = var.minecraft__idea_reaction_discord_token + } +}