add slack url env var to the tuya bridge for slack notifications [ci skip]
This commit is contained in:
parent
48a7deb4b1
commit
3ea34fd0f2
5 changed files with 9 additions and 0 deletions
2
main.tf
2
main.tf
|
|
@ -124,6 +124,7 @@ variable "xray_reality_short_ids" { type = list(string) }
|
|||
variable "tiny_tuya_api_key" { type = string }
|
||||
variable "tiny_tuya_api_secret" { type = string }
|
||||
variable "tiny_tuya_service_secret" { type = string }
|
||||
variable "tiny_tuya_slack_url" { type = string }
|
||||
|
||||
|
||||
provider "kubernetes" {
|
||||
|
|
@ -513,6 +514,7 @@ module "kubernetes_cluster" {
|
|||
tiny_tuya_api_key = var.tiny_tuya_api_key
|
||||
tiny_tuya_api_secret = var.tiny_tuya_api_secret
|
||||
tiny_tuya_service_secret = var.tiny_tuya_service_secret
|
||||
tiny_tuya_slack_url = var.tiny_tuya_slack_url
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -103,6 +103,7 @@ variable "xray_reality_short_ids" { type = list(string) }
|
|||
variable "tiny_tuya_api_key" { type = string }
|
||||
variable "tiny_tuya_api_secret" { type = string }
|
||||
variable "tiny_tuya_service_secret" { type = string }
|
||||
variable "tiny_tuya_slack_url" { type = string }
|
||||
|
||||
|
||||
|
||||
|
|
@ -709,4 +710,5 @@ module "tuya-bridge" {
|
|||
tiny_tuya_api_key = var.tiny_tuya_api_key
|
||||
tiny_tuya_api_secret = var.tiny_tuya_api_secret
|
||||
tiny_tuya_service_secret = var.tiny_tuya_service_secret
|
||||
slack_url = var.tiny_tuya_slack_url
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ variable "tls_secret_name" {}
|
|||
variable "tiny_tuya_api_key" { type = string }
|
||||
variable "tiny_tuya_api_secret" { type = string }
|
||||
variable "tiny_tuya_service_secret" { type = string }
|
||||
variable "slack_url" { type = string }
|
||||
|
||||
resource "kubernetes_namespace" "tuya-bridge" {
|
||||
metadata {
|
||||
|
|
@ -58,6 +59,10 @@ resource "kubernetes_deployment" "tuya-bridge" {
|
|||
name = "SERVICE_API_KEY" # used for auth the API endpoint
|
||||
value = var.tiny_tuya_service_secret
|
||||
}
|
||||
env {
|
||||
name = "SLACK_URL"
|
||||
value = var.slack_url
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
BIN
terraform.tfvars
BIN
terraform.tfvars
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue