Skip to content

Commit

Permalink
feature: add oms_agent_enabled option
Browse files Browse the repository at this point in the history
  • Loading branch information
jchenDevops committed Nov 5, 2024
1 parent 495d0ab commit 9b8fa7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ resource "azurerm_kubernetes_cluster" "main" {
}
}
dynamic "oms_agent" {
for_each = var.log_analytics_workspace_enabled ? ["oms_agent"] : []
for_each = (var.log_analytics_workspace_enabled && var.oms_agent_enabled) ? ["oms_agent"] : []

content {
log_analytics_workspace_id = local.log_analytics_workspace.id
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,12 @@ variable "azure_policy_enabled" {
description = "Enable Azure Policy Addon."
}

variable "oms_agent_enabled" {
type = bool
default = false
description = "Enable OMS Agent Addon."
}

variable "brown_field_application_gateway_for_ingress" {
type = object({
id = string
Expand Down

0 comments on commit 9b8fa7b

Please sign in to comment.