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

Expose allow_net_admin feature in gke-cluster-autopilot module #1575

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/gke-cluster-autopilot/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ resource "google_container_cluster" "cluster" {
initial_node_count = 1

enable_autopilot = true
allow_net_admin = var.allow_net_admin

addons_config {
http_load_balancing {
Expand Down
6 changes: 6 additions & 0 deletions modules/gke-cluster-autopilot/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,9 @@ variable "vpc_config" {
})
nullable = false
}

variable "allow_net_admin" {
ludoo marked this conversation as resolved.
Show resolved Hide resolved
description = "Enable NET_ADMIN feature on autopilot cluster."
type = bool
default = false
}