Skip to content

Commit

Permalink
feat: create idea-reaction k8s secret
Browse files Browse the repository at this point in the history
  • Loading branch information
m1sk9 committed Nov 18, 2023
1 parent aa332cb commit 5d6b19e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 0 additions & 1 deletion terraform/onp_cluster_minecraft_secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
13 changes: 13 additions & 0 deletions terraform/onp_cluster_secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 5d6b19e

Please sign in to comment.