Skip to content

Commit

Permalink
feat(google_gke): add disable_snat_status flag (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlactin authored Feb 3, 2023
1 parent e2bdc61 commit 22c9e57
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions google_gke/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ resource "google_container_cluster" "primary" {
}
}

default_snat_status {
disabled = var.disable_snat_status
}

# Networking: Defaulting to Shared VPC Setup
network = local.network
subnetwork = local.subnetwork
Expand Down
6 changes: 6 additions & 0 deletions google_gke/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ variable "enable_dataplane" {
type = bool
}

variable "disable_snat_status" {
default = false
description = "Whether the cluster disables default in-node sNAT rules. Defaults to false."
type = bool
}

variable "shared_vpc_outputs" {
default = null
description = "Sets networking-related variables based on a homegrown Shared VPC Terraform outputs data structure."
Expand Down

0 comments on commit 22c9e57

Please sign in to comment.