Skip to content

Commit

Permalink
fix: conditional issue with persistence defaultClass helm variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hbollon committed Jan 26, 2024
1 parent fd1d34f commit 38555e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit 38555e5

Please sign in to comment.