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

Data Catalog tagTemplates + tags #5892

Closed
danawillow opened this issue Mar 13, 2020 · 6 comments
Closed

Data Catalog tagTemplates + tags #5892

danawillow opened this issue Mar 13, 2020 · 6 comments

Comments

@danawillow
Copy link
Contributor

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 the issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.

Description

https://cloud.google.com/data-catalog

New or Affected Resource(s)

Request is specifically for:

but it may make sense to also add the other entryGroup related resources for completeness (especially since that'll make it easier to test).

Potential Terraform Configuration

# Propose what you think the configuration to take advantage of this feature should look like.
# We may not use it verbatim, but it's helpful in understanding your intent.

References

  • b/151143549
@danawillow
Copy link
Contributor Author

Quick update- I'm working on the tag template resource, but the API is a bit unusual:

  • tagTemplates require a non-empty list of fields
  • fields cannot be updated by calling an update/patch method on the tagTemplate, but instead are done with add/remove/patch on the field
  • typically we would handle ^ by breaking out field into its own resource, but we can't do that here because of the requirement of tagTemplates.fields being non-empty.

It's still doable in Terraform- Bigtable Clusters have similar restrictions, and so we put them on the Bigtable Instance resource (which requires at least one cluster). However, it's not the easiest code to write+maintain (I don't know how it is from a usability perspective though, but my guess is the separate resource is better than or equivalent to the list of objects). Checking with the Data Catalog team to see what they think (b/155304495 for Googlers).

@yin
Copy link

yin commented May 5, 2020

@danawillow
Copy link
Contributor Author

Filed #6574 for update support on tag template fields. Please +1 that issue if it's important to you so we know whether or not its worth putting effort into.

Closing this one out since we now have all resources supported.

@yin
Copy link

yin commented Jun 12, 2020

I see this PR includes EntryGroups. Tagging is most relevant with entries as well. Do we need to file a new feature request for maintaining entries as well?

@danawillow
Copy link
Contributor Author

GoogleCloudPlatform/magic-modules#3532 is the PR for Entry

@ghost
Copy link

ghost commented Jul 12, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Jul 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants