Skip to content

Conversation

maikelpoot
Copy link
Contributor

This PR will expose the enable_k8s_beta_apis:enabled_apis block of the google_container_cluster resource as a list of strings variable.

Example:

module "gke_cluster" {
  source     = "terraform-google-modules/kubernetes-engine/google//modules/beta-private-cluster"
  version    = "38.0.0"
  ...
  enable_k8s_beta_apis = [
    "networking.k8s.io/v1beta1/ipaddresses",
    "networking.k8s.io/v1beta1/servicecidrs"
  ]
  ...
 }

Tested as a local checkout against a cluster that had api's enabled with gcloud cli

@maikelpoot maikelpoot requested review from a team, apeabody and ericyz as code owners July 17, 2025 12:33
Copy link

google-cla bot commented Jul 17, 2025

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.

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 @maikelpoot!

@apeabody
Copy link
Collaborator

apeabody commented Aug 8, 2025

/gcbrun

@apeabody
Copy link
Collaborator

apeabody commented Aug 8, 2025

/gcbrun

@apeabody
Copy link
Collaborator

apeabody commented Aug 9, 2025

From the CI Test:

Error: googleapi: Error 400: Beta API "networking.k8s.io/v1beta1/ipaddresses" may only be enabled if Beta API "networking.k8s.io/v1beta1/servicecidrs" is also enabled.

@maikelpoot
Copy link
Contributor Author

From the CI Test:

Error: googleapi: Error 400: Beta API "networking.k8s.io/v1beta1/ipaddresses" may only be enabled if Beta API "networking.k8s.io/v1beta1/servicecidrs" is also enabled.

Added the requested api to the test fixture

@apeabody
Copy link
Collaborator

apeabody commented Sep 3, 2025

/gcbrun

@apeabody
Copy link
Collaborator

apeabody commented Sep 3, 2025

/gcbrun

1 similar comment
@apeabody
Copy link
Collaborator

apeabody commented Sep 3, 2025

/gcbrun

@maikelpoot maikelpoot requested a review from apeabody September 4, 2025 10:55
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 @maikelpoot!

@apeabody apeabody self-assigned this Sep 4, 2025
@apeabody apeabody merged commit 090781d into terraform-google-modules:main Sep 4, 2025
4 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.

2 participants