-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Promote Vertex AI FeatureStore resources (GA only) #6565
Merged
slevenick
merged 13 commits into
GoogleCloudPlatform:main
from
shotarok:promote-vertex-ai-featurestore-resources
Oct 14, 2022
Merged
Changes from 9 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
626404e
feat: promote vertex ai feature store resources (ga only)
shotarok 89d6672
feat: deprecate the field: monitoring_interval
shotarok 3e76e59
Revert "feat: deprecate the field: monitoring_interval"
shotarok b600ab9
feat: update the example to use only the GA fields
shotarok a540bf2
Merge remote-tracking branch 'gcp/main' into promote-vertex-ai-featur…
shotarok c37fbcd
fix: diable monitoring_config.snapshot_analysis in the example
shotarok bc1954a
feat: promote the featurestore entity feature resource to GA
shotarok d3b5090
fix: add default_value to fix the unintentional diff
shotarok 2b0982d
feat: update the link to the api doc
shotarok acc9fb1
Revert "fix: add default_value to fix the unintentional diff"
shotarok c87fbf6
refactor: use deprecation_message to clarify the deprecated field
shotarok 9662dd4
feat: add a new example to test beta fields
shotarok 6d8c548
fix: use a different resource name to run tests in parallel
shotarok File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
mmv1/templates/terraform/examples/vertex_ai_featurestore.tf.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't add a default value in a minor version of the provider. It's technically considered a breaking change even if it was the implicit default value before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@slevenick Got it! I'll revert the change. BTW, could you give me an example to test a beta field? I'd like to test
monitoring_interval
only in the google-beta.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example, can we define an additional
google_vertex_ai_featurestore_entitytype
only in the test of the google-beta provider?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you can find examples of the version tag needed to make some code only exist in the beta provider. I think its something like <%- unless version == "ga" %>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@slevenick it turns out there is no version information in the bindings to render the example. I'm wondering if there is another way to test a beta field. Or should I pass the version to render the example?
magic-modules/mmv1/provider/terraform/examples.rb
Lines 259 to 267 in 3132afe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understood we could define multiple examples for a resource, and we can define min_version of an example object. I'll add two example erb files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could define an example only for the beta provider by min_version of an example object. However, I couldn't define an example only for the ga provider only with the min_version.
magic-modules/mmv1/templates/terraform/examples/base_configs/test_file.go.erb
Lines 29 to 32 in 13f6fa6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created two examples. One is without
monitoring_interval
, which works for both ga and beta. Another example is withmonitoring_interval
, which only works for beta.