Skip to content

Commit a5777dc

Browse files
committed
beta-autopilot-private-cluster: support CiliumClusterwideNetworkPolicy
1 parent 29113e4 commit a5777dc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

modules/beta-autopilot-private-cluster/cluster.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ resource "google_container_cluster" "primary" {
8585
enabled = var.enable_vertical_pod_autoscaling
8686
}
8787
enable_fqdn_network_policy = var.enable_fqdn_network_policy
88+
enable_cilium_clusterwide_network_policy = var.enable_cilium_clusterwide_network_policy
89+
8890
enable_autopilot = true
8991
dynamic "master_authorized_networks_config" {
9092
for_each = local.master_authorized_networks_config

modules/beta-autopilot-private-cluster/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,12 @@ variable "enable_fqdn_network_policy" {
399399
default = null
400400
}
401401

402+
variable "enable_cilium_clusterwide_network_policy" {
403+
type = bool
404+
description = "Enable Cilium cluster-wide network policy."
405+
default = false
406+
}
407+
402408
variable "security_posture_mode" {
403409
description = "Security posture mode. Accepted values are `DISABLED` and `BASIC`. Defaults to `DISABLED`."
404410
type = string

0 commit comments

Comments
 (0)