Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: google_container_cluster panics if not all configs are set #8218

Closed
simonswine opened this issue Aug 16, 2016 · 2 comments
Closed

Bug: google_container_cluster panics if not all configs are set #8218

simonswine opened this issue Aug 16, 2016 · 2 comments

Comments

@simonswine
Copy link

If you use only a single child of google_container_cluster's addons_config terraform panics:

addons_config {
    http_load_balancing {
      disabled = true
    }
}

This is working fine:

addons_config {
    http_load_balancing {
      disabled = true
    }
    horizontal_pod_autoscaling {
      disabled = true
    }
}

Terraform Version

$ terraform -v
Terraform v0.7.0

Affected Resource(s)

  • google_container_cluster

Terraform Configuration Files

resource "google_container_cluster" "default-infra" {
  name               = "default-infra"
  zone               = "${var.default_zone}"
  initial_node_count = 1

 master_auth {
    username = "${var.master_auth_username}"
    password = "${var.master_auth_password}"
  }

  node_config {
    machine_type = "n1-standard-2"

    oauth_scopes = [
      "https://www.googleapis.com/auth/compute",
      "https://www.googleapis.com/auth/devstorage.read_only",
      "https://www.googleapis.com/auth/service.management",
      "https://www.googleapis.com/auth/servicecontrol",
      "https://www.googleapis.com/auth/logging.write",
      "https://www.googleapis.com/auth/monitoring",
    ]
  }

  addons_config {
    http_load_balancing {
      disabled = true
    }
  }
}

Panic Output

https://gist.github.com/simonswine/52af100643bf5395d1b4c5acfd80a5eb

Expected Behavior

  • Create a cluster with http_load_balancing setting accordingly
  • Other addons' default values are used

Actual Behavior

  • Panic see log

Steps to Reproduce

  1. terraform apply

References

#5871

@catsby
Copy link
Contributor

catsby commented May 16, 2017

Hey there! I believe this was fixed in #13954 . If you're still hitting this, please let us know!

@catsby catsby closed this as completed May 16, 2017
@ghost
Copy link

ghost commented Apr 12, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants