Skip to content

Commit

Permalink
temporally disable temporal due to temporalio/helm-charts#595
Browse files Browse the repository at this point in the history
  • Loading branch information
slavb18 committed Oct 31, 2024
1 parent d4238d1 commit 56ce278
Showing 1 changed file with 22 additions and 43 deletions.
65 changes: 22 additions & 43 deletions terraform/temporal.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,49 +42,28 @@ resource "kubernetes_namespace" "temporal" {
name = "temporal"
}
}
resource "helm_release" "temporal" {
#count = 0
depends_on = [null_resource.k3s_finalize]
repository = "https://go.temporal.io/helm-charts"
name = "temporal"
chart = "temporal"
namespace = kubernetes_namespace.temporal.metadata[0].name
#create_namespace = true

values = [
templatefile("charts/temporal-values.yaml.tpl", {
TEMPORAL_DOMAIN = "${local.TEMPORAL_DOMAIN}"
DEX_DOMAIN = var.DEX_DOMAIN
DB_HOST = "${terraform_data.postgresqlname[0].output}."
DB_NAME = postgresql_database.temporal.name
DB_VISIBILITY_NAME = postgresql_database.temporal_visibility.name
})
]
set {
name = "server.replicaCount"
value = "1"
}
set {
name = "cassandra.config.cluster_size"
value = "1"
}
set {
name = "elasticsearch.replicas"
value = "1"
}
set_sensitive {
name = "web.additionalEnv[0].value"
value = var.TEMPORAL_STATIC_CLIENT_SECRET
}
#set {
# name = "prometheus.enabled"
# value = "false"
#}
#set {
# name = "temporal.enabled"
# value = "false"
#}
}
# resource "helm_release" "temporal" {
# #count = 0
# depends_on = [null_resource.k3s_finalize]
# repository = "https://go.temporal.io/helm-charts"
# name = "temporal"
# chart = "temporal"
# namespace = kubernetes_namespace.temporal.metadata[0].name
# #create_namespace = true
# values = [
# templatefile("charts/temporal-values.yaml.tpl", {
# TEMPORAL_DOMAIN = "${local.TEMPORAL_DOMAIN}"
# DEX_DOMAIN = var.DEX_DOMAIN
# DB_HOST = "${terraform_data.postgresqlname[0].output}."
# DB_NAME = postgresql_database.temporal.name
# DB_VISIBILITY_NAME = postgresql_database.temporal_visibility.name
# })
# ]
# set_sensitive {
# name = "web.additionalEnv[0].value"
# value = var.TEMPORAL_STATIC_CLIENT_SECRET
# }
# }

resource "kubernetes_labels" "temporal" {
api_version = "v1"
Expand Down

0 comments on commit 56ce278

Please sign in to comment.