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

Create data source for google_gke_hub_membership_binding #18538

Comments

@sahsagar-google
Copy link

sahsagar-google commented Jun 24, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Description

It'd be extremely helpful if we created terraform data sources for hub resources. This would allow application teams to reference resources' values without needing to have their projects own the resources and/or have access to the platform's projects' tf state.

the cannonical example in general in GCP is google_project -- this is commonly used in situations where a project resides in a project it doesnt manage but needs to reference it to get its project number. in the absence of this data source, the user would need to manually use gcloud to do this and any module that needs it and takes a project id (ie most gcp modules) would have to also take a project number.

within the hub team, a common use case would be for gke_hub_scope, something that would be key to separation of platform admin team scope provisioning and app team gke_hub_namespace self service.

another one might be for gke_hub_membership_bindings to subsequently install something into a team's clusters (though this is not likely an app operator's need)

New or Affected Resource(s)

  • google_gke_hub_membership_binding

Potential Terraform Configuration

References

No response

b/350515126

@sahsagar-google
Copy link
Author

I'm working on this!

Copy link

github-actions bot commented Aug 9, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.