Skip to content

Commit

Permalink
enable azure policy
Browse files Browse the repository at this point in the history
  • Loading branch information
nihaldivyam committed Oct 8, 2024
1 parent 6994617 commit 261f66a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions terraform/azure/aks/aks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ resource "azurerm_kubernetes_cluster" "k8s" {
private_cluster_public_fqdn_enabled = true
sku_tier = var.sku_tier
oidc_issuer_enabled = var.oidc_issuer_enabled
azure_policy_enabled = var.azure_policy_enabled
default_node_pool {
name = var.nodepool_name
node_count = var.default_agent_count
Expand Down
6 changes: 6 additions & 0 deletions terraform/azure/aks/variables-aks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -289,3 +289,9 @@ variable "cluster_backup_endpoint_tenant_id" {
default = null

}

variable "azure_policy_enabled" {
description = "value to enable or disable azure policy"
type = bool
default = false
}

0 comments on commit 261f66a

Please sign in to comment.