Skip to content

Commit

Permalink
Merge pull request #1418 from GiganticMinecraft/fix/idea-reaction-pod
Browse files Browse the repository at this point in the history
fix: `idea-reaction` pod secrets
  • Loading branch information
kory33 authored Nov 19, 2023
2 parents ae5b25f + fac612c commit 93e08a6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 2 additions & 3 deletions terraform/onp_cluster_minecraft_secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
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 93e08a6

Please sign in to comment.