rename workload config variable in gke nodepool and change default

This commit is contained in:
Ludovico Magnocavallo 2020-04-27 08:08:31 +02:00
parent 5212f54089
commit af5850ef2b
3 changed files with 10 additions and 7 deletions

View File

@ -8,6 +8,9 @@ All notable changes to this project will be documented in this file.
- fix Cloud NAT module internal router name lookup
- re-enable and update outputs for the foundations environments example
- add peering route configuration for private clusters to GKE cluster module
- **incompatible changes** in the GKE nodepool module
- rename `node_config_workload_metadata_config` variable to `workload_metadata_config`
- new default for `workload_metadata_config` is `GKE_METADATA_SERVER`
## [1.3.0] - 2020-04-08

View File

@ -77,7 +77,7 @@ resource "google_container_node_pool" "nodepool" {
}
workload_metadata_config {
node_metadata = var.node_config_workload_metadata_config
node_metadata = var.workload_metadata_config
}
}

View File

@ -165,12 +165,6 @@ variable "node_config_tags" {
# default = null
# }
variable "node_config_workload_metadata_config" {
description = "Metadata configuration to expose to workloads on the node pool."
type = string
default = "SECURE"
}
variable "node_count" {
description = "Number of nodes per instance group, can be updated after creation. Ignored when autoscaling is set."
type = number
@ -196,3 +190,9 @@ variable "upgrade_config" {
})
default = null
}
variable "workload_metadata_config" {
description = "Metadata configuration to expose to workloads on the node pool."
type = string
default = "GKE_METADATA_SERVER"
}