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

[Fix] Returns an Error if the Grafana-Terraform-Provider Header is missing for Requests to the SLO API #1630

Closed
elainevuong opened this issue Jun 11, 2024 · 0 comments · Fixed by #1631
Assignees

Comments

@elainevuong
Copy link
Contributor

elainevuong commented Jun 11, 2024

To prevent regression due to missing headers from the Terraform Provider, we add a check directly in the TF Provider that ensures that resourceSloRead calls always have a readOnly.Provenance field of "terraform".

resourceSloRead is called after all CREATE/UPDATEs made by the Terraform Provider, so it is reasonable to expect that the modified Slo would have a readOnly.Provenance field of terraform.

If this is missing, it's likely because the header was removed from within the Terraform Provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants