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 761ca1c22..6d5cb7789 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 @@ -34,8 +34,15 @@ spec: value: "959307225413845072" - name: TARGET_GUILD_ID value: "237758724121427969" + - name: REDMINE_URL + value: "https://redmine.seichi.click" - name: DISCORD_API_TOKEN valueFrom: secretKeyRef: name: idea-reaction-discord-token key: IDEA_REACTION_DISCORD_TOKEN + - name: REDMINE_API_KEY + valueFrom: + secretKeyRef: + name: idea-reaction-redmine-api-key + key: IDEA_REACTION_REDMINE_API_KEY diff --git a/terraform/main.tf b/terraform/main.tf index f3a01fc35..98d8dd4b6 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -298,6 +298,12 @@ variable "minecraft__idea_reaction_discord_token" { sensitive = true } +variable "minecraft__idea_reaction_redmine_api_key" { + description = "Redmine API Key set to the production idea-reaction" + type = string + sensitive = true +} + #endregion #region env variables for Cloudflare Pages projects diff --git a/terraform/onp_cluster_secrets.tf b/terraform/onp_cluster_secrets.tf index 7811c288e..1d5a546d3 100644 --- a/terraform/onp_cluster_secrets.tf +++ b/terraform/onp_cluster_secrets.tf @@ -279,3 +279,16 @@ resource "kubernetes_secret" "idea_reaction_discord_token" { IDEA_REACTION_DISCORD_TOKEN = var.minecraft__idea_reaction_discord_token } } + +resource "kubernetes_secret" "idea_reaction_redmine_api_key" { + depends_on = [kubernetes_namespace_onp_seichi_minecraft] + + metadata { + name = "idea-reaction-redmine-api-key" + namespace = "seichi-minecraft" + } + + data = { + IDEA_REACTION_REDMINE_API_KEY = var.minecraft__idea_reaction_redmine_api_key + } +}