Skip to content

beta-autopilot-private-cluster: support CiliumClusterwideNetworkPolicy #1975

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

Closed
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: 2 additions & 0 deletions modules/beta-autopilot-private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ resource "google_container_cluster" "primary" {
enabled = var.enable_vertical_pod_autoscaling
}
enable_fqdn_network_policy = var.enable_fqdn_network_policy
enable_cilium_clusterwide_network_policy = var.enable_cilium_clusterwide_network_policy

enable_autopilot = true
dynamic "master_authorized_networks_config" {
for_each = local.master_authorized_networks_config
Expand Down
6 changes: 6 additions & 0 deletions modules/beta-autopilot-private-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,12 @@ variable "enable_fqdn_network_policy" {
default = null
}

variable "enable_cilium_clusterwide_network_policy" {
type = bool
description = "Enable Cilium cluster-wide network policy."
default = false
}

variable "security_posture_mode" {
description = "Security posture mode. Accepted values are `DISABLED` and `BASIC`. Defaults to `DISABLED`."
type = string
Expand Down