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 fac612c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
5 changes: 2 additions & 3 deletions terraform/onp_cluster_minecraft_secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
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 fac612c

Please sign in to comment.