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,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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue