diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/idea-reaction/idea-reaction.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/idea-reaction/idea-reaction.yaml index 09d88255e..4a6d62cd3 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/idea-reaction/idea-reaction.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-minecraft/idea-reaction/idea-reaction.yaml @@ -41,7 +41,7 @@ spec: secretKeyRef: name: idea-reaction-discord-token key: IDEA_REACTION_DISCORD_TOKEN - volumes: - - name: idea-reaction-config-volume - configMap: - name: idea-reaction-config + volumes: + - name: idea-reaction-config-volume + configMap: + name: idea-reaction-config diff --git a/terraform/onp_cluster_minecraft_secrets.tf b/terraform/onp_cluster_minecraft_secrets.tf index cfdc00fc1..8329add98 100644 --- a/terraform/onp_cluster_minecraft_secrets.tf +++ b/terraform/onp_cluster_minecraft_secrets.tf @@ -24,9 +24,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 + } +}