Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uses Azure policies add-on in the test fixture code #203

Merged
merged 2 commits into from
Jul 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ resource "azurerm_kubernetes_cluster" "main" {

http_application_routing_enabled = var.enable_http_application_routing

azure_policy_enabled = var.enable_azure_policy
azure_policy_enabled = var.azure_policy_enabled

dynamic "oms_agent" {
for_each = var.enable_log_analytics_workspace ? ["oms_agent"] : []
Expand Down
2 changes: 1 addition & 1 deletion test/fixture/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module "aks" {
vnet_subnet_id = azurerm_subnet.test.id
os_disk_size_gb = 60
enable_http_application_routing = true
enable_azure_policy = true
azure_policy_enabled = true
enable_host_encryption = true
enable_role_based_access_control = true
rbac_aad_managed = true
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ variable "enable_http_application_routing" {
default = false
}

variable "enable_azure_policy" {
variable "azure_policy_enabled" {
description = "Enable Azure Policy Addon."
type = bool
default = false
Expand Down