Skip to content

Add tags field to Firestore Database resource. #13670

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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

jingqizz
Copy link

@jingqizz jingqizz commented Apr 14, 2025

This commit adds support for the tags field to the Firestore Database resource. The tags field is a map<string, string>. This allows users to perform database actions and setting tag bindings at the same time.

firestore: add `tags` field to `database` resource

@github-actions github-actions bot requested a review from SirGitsalot April 14, 2025 20:13
Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run. Googlers: see go/terraform-auto-test-runs to set up automatic test runs.

@SirGitsalot, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Apr 14, 2025
@jingqizz jingqizz closed this Apr 14, 2025
@jingqizz jingqizz reopened this Apr 14, 2025
@github-actions github-actions bot requested a review from SirGitsalot April 15, 2025 16:50
{"123/environment" : "tagValues/444"}
Inconsistent format is not supported.
For example, the following is invalid.
{"tagKeys/333" : "tagValues/444", "123/env" : "prod"}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you also add the text from mmv1/products/filestore/Instance.yaml - it's pertinent to Terraform users

Copy link
Author

Choose a reason for hiding this comment

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

I copied most of the text from filestore/instance.yaml, but I think their description to the format is not completely correct. Based on tags, I think we can take 2 different formats (1) tagKeys/key_id: tagValues/value_id (2) namespacedName of key: short name of value. (They cannot be mixed up in the map.)

@jingqizz jingqizz marked this pull request as draft April 15, 2025 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-approval Pull requests that need reviewer's approval to run presubmit tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants