From 83dec180cfd056227ca6d4a9a204c9873323022f Mon Sep 17 00:00:00 2001 From: amanpruthi Date: Mon, 1 Jul 2024 12:19:38 +0530 Subject: [PATCH 1/2] feat: added stackdriver fix --- main.tf | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/main.tf b/main.tf index b1fcd250..c947e76c 100644 --- a/main.tf +++ b/main.tf @@ -265,18 +265,20 @@ module "wandb" { } } # To support otel rds and redis metrics need operator-wandb chart minimum version 0.13.8 ( stackdriver subchart) - stackdriver = var.enable_stackdriver ? { - install = true - stackdriver = { - projectId = data.google_client_config.current.project - serviceAccountName = var.stackdriver_sa_name + prometheus = { + stackdriver = var.enable_stackdriver ? { + install = true + stackdriver = { + projectId = data.google_client_config.current.project + serviceAccountName = var.stackdriver_sa_name + } + serviceAccount = { annotations = { "iam.gke.io/gcp-service-account" = module.service_accounts.stackdriver_email } } + } : { + install = false + stackdriver = {} + serviceAccount = {} + } } - serviceAccount = { annotations = { "iam.gke.io/gcp-service-account" = module.service_accounts.stackdriver_email } } - } : { - install = false - stackdriver = {} - serviceAccount = {} - } otel = { daemonset = var.enable_stackdriver ? { From bf7dbbfdec92c721dcb87ffa2d4a87484492226e Mon Sep 17 00:00:00 2001 From: amanpruthi Date: Mon, 1 Jul 2024 12:33:40 +0530 Subject: [PATCH 2/2] feat: added stackdriver fix --- main.tf | 1 - 1 file changed, 1 deletion(-) diff --git a/main.tf b/main.tf index c947e76c..63debeeb 100644 --- a/main.tf +++ b/main.tf @@ -279,7 +279,6 @@ module "wandb" { serviceAccount = {} } } - otel = { daemonset = var.enable_stackdriver ? { config = {