Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Bug: google_container_node_pool - plugin tries to create workload_metadata_config block inside node_config with node_metadata attribute as being required #394

Open
5 tasks done
luis-guimaraes-exoawk opened this issue Jun 21, 2022 · 0 comments

Comments

@luis-guimaraes-exoawk
Copy link

Prerequisites

  • Ensure you have latest version of plugin installed
  • Search for possible issue duplicates

Installation details

  • IDE version
IntelliJ IDEA 2022.1.1 (Ultimate Edition)
Build #IU-221.5591.52, built on May 10, 2022
Runtime version: 11.0.14.1+1-b2043.45 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.15.48-1-manjaro
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 12
Non-Bundled Plugins:
   org.rust.lang (0.4.172.4687-221)
   org.jetbrains.plugins.go-template (221.5591.19)
   org.intellij.plugins.hcl (221.5591.19)
   mobi.hsz.idea.gitignore (4.4.0)
   com.intellij.kubernetes (221.5591.58)

Kotlin: 221-1.6.21-release-337-IJ5591.52
Current Desktop: KDE
  • intellij-hcl plugin version: 221.5591.19
  • Terraform version
Terraform v1.2.3
on linux_amd64
+ provider registry.terraform.io/hashicorp/google v4.25.0
+ provider registry.terraform.io/hashicorp/helm v2.6.0
+ provider registry.terraform.io/hashicorp/kubernetes v2.11.0
+ provider registry.terraform.io/hashicorp/local v2.2.3

Terraform Configuration Files

resource "google_container_node_pool" "gke_node_pool" {
  (...)
  node_config {
    (...)
    workload_metadata_config {
      mode = ""
    }
  }
(...)
}

Expected Behavior

It should create the block with the mode attribute as stated in the documentation and the provider source code:
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/container_cluster#nested_workload_metadata_config
https://github.com/hashicorp/terraform-provider-google/blob/0baa871ae8f0cadef4feeeff730ee021ae114154/google/node_config.go#L277

Actual Behavior

It created the block with a non existent argument that it says is required.

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. Auto complete a workload_metadata_config block

Image:
image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant