From 5d6b19e69aa3a9e59c65aa47ea7b5d54863a048a Mon Sep 17 00:00:00 2001 From: m1sk9 Date: Sat, 18 Nov 2023 14:07:56 +0900 Subject: [PATCH] feat: create `idea-reaction` k8s secret --- terraform/onp_cluster_minecraft_secrets.tf | 1 - terraform/onp_cluster_secrets.tf | 13 +++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/terraform/onp_cluster_minecraft_secrets.tf b/terraform/onp_cluster_minecraft_secrets.tf index b173dae53..21f9851ce 100644 --- a/terraform/onp_cluster_minecraft_secrets.tf +++ b/terraform/onp_cluster_minecraft_secrets.tf @@ -24,7 +24,6 @@ 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 } type = "Opaque" diff --git a/terraform/onp_cluster_secrets.tf b/terraform/onp_cluster_secrets.tf index d52328b4f..f4b9e4538 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 + } +}