Skip to content

Conversation

@watsonjm
Copy link
Contributor

@watsonjm watsonjm commented Jan 27, 2026

Description

This PR bumps the minimum required version of the hashicorp/google and hashicorp/google-beta providers to 7.10.0.

Fixes #2523

Reason

The network_tier_config block was added to the google_container_cluster resource in the Google provider version 7.10.0 (reference).
The current module code (v43.0.0+) utilizes this block in cluster.tf. However, the provider version constraint was previously set to >= 7.0.0. Users running provider versions between 7.0.0 and 7.9.0 encounter the following error:

Error: Unsupported block type

  on .terraform/modules/gke/modules/private-cluster-update-variant/cluster.tf line 437, in resource "google_container_cluster" "primary":
 437:     dynamic "network_tier_config" {

Blocks of type "network_tier_config" are not expected here.

Changes

Updated autogen/versions.tf.tmpl to require google and google-beta >= 7.10.0.
Ran make build to regenerate all module versions.tf files.

@google-cla
Copy link

google-cla bot commented Jan 27, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @watsonjm, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses a compatibility issue where the network_tier_config block for Google Kubernetes Engine (GKE) clusters was not recognized by older versions of the Google Terraform provider. By bumping the minimum required version of the hashicorp/google and hashicorp/google-beta providers to 7.10.0, the module now correctly supports this configuration, preventing "Unsupported block type" errors for users.

Highlights

  • Provider Version Bump: The minimum required version for hashicorp/google and hashicorp/google-beta Terraform providers has been increased to 7.10.0.
  • network_tier_config Support: This update resolves an "Unsupported block type" error encountered by users attempting to use the network_tier_config block within google_container_cluster resources, as this feature was introduced in provider version 7.10.0.
  • Configuration Updates: The change involved modifying the autogen/versions.tf.tmpl template and regenerating all versions.tf files across various modules, as well as updating corresponding metadata.yaml files.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request effectively addresses the stated problem by bumping the minimum required versions of the hashicorp/google and hashicorp/google-beta providers to 7.10.0. This change is necessary to support the network_tier_config block in google_container_cluster resources, resolving the Unsupported block type error for users on older provider versions. All versions.tf and metadata.yaml files across the main module and its sub-modules have been consistently updated. The changes are straightforward and correctly implement the intended fix. No further issues were found.

@apeabody apeabody changed the title fix: bump min google provider to 7.10 for network_tier_config support fix(TPG>=7.10)!: bump min google provider to 7.10 for network_tier_config support Jan 27, 2026
@apeabody
Copy link
Collaborator

/gcbrun

Copy link
Collaborator

@apeabody apeabody left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution @watsonjm!

@apeabody apeabody merged commit 04dc4af into terraform-google-modules:main Jan 29, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Blocks of type "network_tier_config" are not expected here

2 participants