Skip to content

Commit

Permalink
Added mesh_certificates setting in GKE cluster.
Browse files Browse the repository at this point in the history
  • Loading branch information
rosmo committed Feb 2, 2023
1 parent a046f28 commit 68a552a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions modules/gke-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,13 @@ resource "google_container_cluster" "cluster" {
}
}

dynamic "mesh_certificates" {
for_each = var.enable_features.mesh_certificates != null ? [""] : []
content {
enable_certificates = var.enable_features.mesh_certificates
}
}

dynamic "monitoring_config" {
for_each = var.monitoring_config != null && !var.enable_features.autopilot ? [""] : []
content {
Expand Down
3 changes: 2 additions & 1 deletion modules/gke-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ variable "enable_features" {
groups_for_rbac = optional(string)
intranode_visibility = optional(bool, false)
l4_ilb_subsetting = optional(bool, false)
mesh_certificates = optional(bool)
pod_security_policy = optional(bool, false)
resource_usage_export = optional(object({
dataset = string
Expand Down Expand Up @@ -232,4 +233,4 @@ variable "vpc_config" {
master_authorized_ranges = optional(map(string))
})
nullable = false
}
}

0 comments on commit 68a552a

Please sign in to comment.