You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to validate some aks build with terraform falling with: Ensure AKS cluster has Network Policy configured. that is accurics.azure.NS.382.
This support to happen if the AKZ has no network policy enabled, but in this case it does.
#main.tf
resource "azurerm_kubernetes_cluster" "primary" {
name = var.cluster_name
location = var.region
resource_group_name = var.resource_group
dns_prefix = var.dns_prefix
kubernetes_version = var.k8s_version
network_profile {
network_plugin = var.network_plugin
network_policy = var.network_policy
}
#variables.tf
variable "network_policy" {
description = "Sets up network policy to be used with Azure CNI."
type = string
default = "azure"
}
variable "network_plugin" {
description = "Network plugin to use for networking."
type = string
default = "azure"
}
After applying the configuration I get this from the state:
Description
Trying to validate some aks build with terraform falling with:
Ensure AKS cluster has Network Policy configured.
that isaccurics.azure.NS.382
.This support to happen if the AKZ has no network policy enabled, but in this case it does.
After applying the configuration I get this from the state:
What I Did
The text was updated successfully, but these errors were encountered: