From 38555e5798b1be85b9399f441474175e4eda5c48 Mon Sep 17 00:00:00 2001 From: Hugo Bollon Date: Fri, 26 Jan 2024 16:32:59 +0100 Subject: [PATCH] fix: conditional issue with persistence defaultClass helm variable --- locals.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/locals.tf b/locals.tf index 6b4fcb5..1cf99b2 100644 --- a/locals.tf +++ b/locals.tf @@ -18,7 +18,7 @@ locals { taintToleration = join(";", local.tolerations_list) } persistence = { - defaultClass = tostring(var.enable_pv_backups && var.set_default_storage_class) + defaultClass = tostring(!(var.enable_pv_backups && var.set_default_storage_class)) defaultClassReplicaCount = var.replica_count recurringJobSelector = { enable = tostring(var.automatic_filesystem_trim.enabled && !var.set_default_storage_class) @@ -68,7 +68,7 @@ locals { enabled = var.enable_monitoring_dashboard } servicemonitor = { - enabled = var.enable_service_monitor + enabled = var.enable_service_monitor additionalAlertLabels = var.additional_alert_labels } automaticFilesystemTrim = {