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

Add common provider headers to cloud-provider-client #1828

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

thepalbi
Copy link

@thepalbi thepalbi commented Oct 2, 2024

This PR adds provider headers the cloud-provider-client. This are basically:

  • Grafana-Terraform-Provider: true if request coming from provider, allows us in the API to understand a request comes from the provider
  • Grafana-Terraform-Provider-Version: contains version of provider, might be useful to propagate it through context and log it to debug provider issues

Also, once we have this, we can identify from which client a request is coming from, and then, store the "provenance" of a resource. Using here the same concept SLO uses https://github.com/grafana/slo/blob/346637b4ce113db1bc910f46fc397c72943e3426/pkg/api/slo.go#L410, which sounds just right.

@thepalbi thepalbi requested a review from a team as a code owner October 2, 2024 09:37
Copy link

github-actions bot commented Oct 2, 2024

In order to lower resource usage and have a faster runtime, PRs will not run Cloud tests automatically.
To do so, a Grafana Labs employee must trigger the cloud acceptance tests workflow manually.

internal/common/cloudproviderapi/client.go Outdated Show resolved Hide resolved
internal/common/cloudproviderapi/client.go Outdated Show resolved Hide resolved
Co-authored-by: Jeroen Op 't Eynde <[email protected]>
@thepalbi
Copy link
Author

thepalbi commented Oct 2, 2024

@Duologic changes applied!

@thepalbi thepalbi merged commit 7cc1413 into tf-cloud-provider-aws-app Oct 2, 2024
26 checks passed
@thepalbi thepalbi deleted the pablo/add-provider-headers branch October 2, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants