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

Handle GKE 1.12 node_config.metadata default value #1507

Merged

Conversation

rileykarson
Copy link
Member

GKE 1.12 added a default metadata value causing diffs in user configs. This is a security improvement, and only affects new cluster creation so this is a change we want to pick up. Terraform doesn't let us define default values for TypeMaps, so this needs to be Computed.

Fixes hashicorp/terraform-provider-google#3230 and also some integration tests that have been failing.


[all]

[terraform]

[terraform-beta]

[ansible]

[inspec]

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
This PR seems not to have generated downstream PRs before, as of 9794478.

Pull request statuses

No diff detected in terraform-google-conversion.
No diff detected in Ansible.
No diff detected in Inspec.

New Pull Requests

I built this PR into one or more new PRs on other repositories, and when those are closed, this PR will also be merged and closed.
depends: hashicorp/terraform-provider-google-beta#522
depends: hashicorp/terraform-provider-google#3233

@@ -61,6 +61,10 @@ resource "google_container_node_pool" "primary_preemptible_nodes" {
preemptible = true
machine_type = "n1-standard-1"

metadata {
disable-legacy-endpoints = "true"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this means the api is expecting a boolean jammed in a string? In which case :(

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is JSON so there are no rules :)

rileykarson and others added 2 commits March 13, 2019 18:10
Tracked submodules are build/terraform-beta build/terraform-mapper build/terraform build/ansible build/inspec.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants