-
Notifications
You must be signed in to change notification settings - Fork 50
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
add provider meta schema with module_name field #197
Conversation
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.
👍
7c35f42
to
9ae6313
Compare
9ae6313
to
7560a3c
Compare
internal/clients/client.go
Outdated
if err != nil { | ||
diag.FromErr(err) | ||
} |
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 think you are missing a return
here? Unless this is intentional.
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.
Oh thanks, good catch!
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.
LGTM, besides one small question regarding the error case. Thanks for doing this!
to be called within a resource, after learning that the providerMeta is only available within the context of a resource, not the provider itself.
7560a3c
to
942ccf0
Compare
🛠️ Description
This PR adds the ProviderMeta schema block to the provider config. This includes the optional field
module_name
, which will be added to a user agent used by analytics.Also adds a helper that handles getting the ProviderMeta in a resource and adds the module name to the user agent. This helper must be added to each resource individually. It currently lives in the Consul cluster, HVN peering, and HVN route.
🚢 Release Note
Release note for CHANGELOG:
🏗️ Acceptance tests
Output from acceptance testing: