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

Make VPC Native-ness (default) configurable in GKE #1467

Merged

Conversation

rileykarson
Copy link
Member

Fixes hashicorp/terraform-provider-google#2497

The API default is changing upstream at EOM, so we need to allow disabling it before then. We'll adopt the new default early; this isn't a breaking change because of how Terraform computes defaults. Since nested objects are a hack, the Default for use_ip_aliases is only used if ip_allocation_policy is defined.

We already defaulted to true when the block was defined and adopted the API-side false when it was undefined, so this should be compatible with existing configs. It's a non-goal to guard our behaviour to preserve the false-y default; assuming the REST API changes, Terraform users should pick up new best-practice default automatically.


[all]

[terraform]

[terraform-beta]

[ansible]

[inspec]

@rileykarson rileykarson requested a review from chrisst March 4, 2019 17:27
@rileykarson rileykarson changed the title Make VPC Native configurable in GKE Make VPC Native-ness (default) configurable in GKE Mar 4, 2019
@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 540cdcf.

Pull request statuses

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#489
depends: hashicorp/terraform-provider-google#3174

Copy link
Contributor

@chrisst chrisst left a comment

Choose a reason for hiding this comment

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

There are mixed tabs/spaces in the test files, but not a huge deal.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, 1a962b9.

Pull request statuses

terraform-provider-google-beta already has an open PR.
No diff detected in terraform-google-conversion.
terraform-provider-google already has an open PR.
No diff detected in Ansible.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

rileykarson and others added 3 commits March 4, 2019 22:11
Tracked submodules are build/terraform-beta build/terraform-mapper build/terraform build/ansible build/inspec.
@modular-magician modular-magician merged commit ff19205 into GoogleCloudPlatform:master Mar 4, 2019
@@ -350,6 +350,11 @@ maintenance_policy {

The `ip_allocation_policy` block supports:

* `use_ip_aliases` - (Optional) Whether alias IPs will be used for pod IPs in
the cluster. Defaults to `true` if the `ip_allocation_policy` block is defined,
and to the API default otherwise. Prior to March 31, 2019, the default on the
Copy link
Contributor

@pdecat pdecat Mar 4, 2019

Choose a reason for hiding this comment

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

According to emails received today, this change was postponed to June 17th:

From: Google Cloud Platform cloud-proactive-comms+****@google.com
Sent: Monday, March 4, 2019 15:32
Subject: [Reminder] GKE cluster creation default mode will change to VPC-Native from June 17

Hello Google Kubernetes Engine Customer,

We previously sent you an email stating that from March 31, 2019, newly created clusters will, by default, be VPC-native instead of routes-based. We are writing to let you know that this change will now take place from June 17, 2019.
[...]

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks! For whatever reason I'm not on the list. I'll update the message.

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.

5 participants