hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.36k stars 1.75k forks source link

enable_kubernetes_alpha for gke cluster is not working as expected #20447

Open venkatarachapudi opened 15 hours ago

venkatarachapudi commented 15 hours ago

Community Note

Terraform Version & Provider Version(s)

Terraform v1.9.8 on darwin_arm64

Affected Resource(s)

google_container_cluster

Terraform Configuration

Debug Output

No response

Expected Behavior

Cluster should be build with the 'enable_kubernetes_alpha' flag enabled

Actual Behavior

β”‚ Error: googleapi: Error 400: Auto_upgrade and auto_repair are not supported for clusters with enable_kubernetes_alpha = true. β”‚ Details: β”‚ [ β”‚ { β”‚ "@type": "type.googleapis.com/google.rpc.RequestInfo", β”‚ "requestId": "0x7ed84688b5d9f816" β”‚ } β”‚ ] β”‚ , badRequest β”‚ β”‚ with google_container_cluster.gke_private, β”‚ on main.tf line 7, in resource "google_container_cluster" "gke_private": β”‚ 7: resource "google_container_cluster" "gke_private" { β”‚ β•΅

Steps to reproduce

  1. terraform apply

Important Factoids

No response

References

No response

b/380481735

ggtisc commented 11 hours ago

Confirmed issue!

It is not possible to create a google_container_cluster with enable_kubernetes_alpha set to true