You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The node_metadata variable cannot be set to GCE_METADATA or EXPOSE (legacy value) anymore due to a mistake in the backward compatibility mapping introduced in #1129:
The legacy EXPOSE value should be mapped to the new GCE_METADATA value, but here it's the opposite: the GCE_METADATA value is mapped to EXPOSE, which is no longer valid.
Expected behavior
Plan should apply with node_metadata set to GCE_METADATA or EXPOSE (legacy value).
Observed behavior
Plan fails with the following error in both cases:
expected node_pool.0.node_config.0.workload_metadata_config.0.mode to be one of [MODE_UNSPECIFIED GCE_METADATA GKE_METADATA], got EXPOSE
Terraform Configuration
module"gke" {
source="terraform-google-modules/kubernetes-engine/google"project_id=var.project_idname=var.cluster_nameregion=var.regionnetwork=var.networksubnetwork=var.subnetworkip_range_pods=var.ip_range_podsip_range_services=var.ip_range_serviceskubernetes_version="1.23"node_metadata="GCE_METADATA"# This does not workremove_default_node_pool=truenode_pools=[
{
name ="node-pool-01"
min_count =1
max_count =3
auto_upgrade =true
}
]
}
Terraform Version
Terraform v1.3.7
on windows_amd64
Additional information
No response
The text was updated successfully, but these errors were encountered:
TL;DR
The
node_metadata
variable cannot be set toGCE_METADATA
orEXPOSE
(legacy value) anymore due to a mistake in the backward compatibility mapping introduced in #1129:terraform-google-kubernetes-engine/autogen/main/main.tf.tmpl
Line 129 in c3e08ea
The legacy
EXPOSE
value should be mapped to the newGCE_METADATA
value, but here it's the opposite: theGCE_METADATA
value is mapped toEXPOSE
, which is no longer valid.Expected behavior
Plan should apply with
node_metadata
set toGCE_METADATA
orEXPOSE
(legacy value).Observed behavior
Plan fails with the following error in both cases:
Terraform Configuration
Terraform Version
Additional information
No response
The text was updated successfully, but these errors were encountered: