pulumiverse / pulumi-grafana

Pulumi provider for Grafana
Apache License 2.0
18 stars 10 forks source link

Update module github.com/grafana/terraform-provider-grafana/v2 to v3 #165

Closed renovate[bot] closed 3 weeks ago

renovate[bot] commented 1 month ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/grafana/terraform-provider-grafana/v2 v2.19.1 -> v3.1.0 age adoption passing confidence

Release Notes

grafana/terraform-provider-grafana (github.com/grafana/terraform-provider-grafana/v2) ### [`v3.1.0`](https://togithub.com/grafana/terraform-provider-grafana/releases/tag/v3.1.0) [Compare Source](https://togithub.com/grafana/terraform-provider-grafana/compare/v3.0.0...v3.1.0) #### What's Changed - `grafana_synthetic_monitoring_probe`: Add `disable_scripted_checks` by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1570](https://togithub.com/grafana/terraform-provider-grafana/pull/1570) - Code Generation: Basic integration test by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1571](https://togithub.com/grafana/terraform-provider-grafana/pull/1571) - Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.33.0 to 2.34.0 in the terraform group by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/grafana/terraform-provider-grafana/pull/1577](https://togithub.com/grafana/terraform-provider-grafana/pull/1577) - Update OnCall escalation type param to be required by [@​matiasb](https://togithub.com/matiasb) in [https://github.com/grafana/terraform-provider-grafana/pull/1575](https://togithub.com/grafana/terraform-provider-grafana/pull/1575) - Remove hardocded pagerduty APIURL by [@​gaurav1999](https://togithub.com/gaurav1999) in [https://github.com/grafana/terraform-provider-grafana/pull/1576](https://togithub.com/grafana/terraform-provider-grafana/pull/1576) - Update SLO client version by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1578](https://togithub.com/grafana/terraform-provider-grafana/pull/1578) - feat(slo): support folder field by [@​inikotoran](https://togithub.com/inikotoran) in [https://github.com/grafana/terraform-provider-grafana/pull/1553](https://togithub.com/grafana/terraform-provider-grafana/pull/1553) - `grafana_cloud_stack`: Add `influx_url` by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1580](https://togithub.com/grafana/terraform-provider-grafana/pull/1580) - Code Generation: Sort resources and imports by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1582](https://togithub.com/grafana/terraform-provider-grafana/pull/1582) - Code Generation: Initial tests by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1583](https://togithub.com/grafana/terraform-provider-grafana/pull/1583) - Code Generation: Do not generate `org_id` field when set to default by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1584](https://togithub.com/grafana/terraform-provider-grafana/pull/1584) - Update go.mod to v3 by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1586](https://togithub.com/grafana/terraform-provider-grafana/pull/1586) - Config Generation: No provider alias on single instance by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1589](https://togithub.com/grafana/terraform-provider-grafana/pull/1589) - Config Generation: Add type and name filter by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1590](https://togithub.com/grafana/terraform-provider-grafana/pull/1590) - Config Generation: More resources! by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1591](https://togithub.com/grafana/terraform-provider-grafana/pull/1591) - Config Generation: Go implementation for executing Terraform binary by [@​Duologic](https://togithub.com/Duologic) in [https://github.com/grafana/terraform-provider-grafana/pull/1592](https://togithub.com/grafana/terraform-provider-grafana/pull/1592) - Config Generation: Add test for JSON by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1593](https://togithub.com/grafana/terraform-provider-grafana/pull/1593) - Config Generation: Various small fixes by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1596](https://togithub.com/grafana/terraform-provider-grafana/pull/1596) - Config Generation: Add tests for alerting resources by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1598](https://togithub.com/grafana/terraform-provider-grafana/pull/1598) - Config Generation: Find references between resources by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1585](https://togithub.com/grafana/terraform-provider-grafana/pull/1585) - Config Generation: Do not crash when everything is filtered out by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1599](https://togithub.com/grafana/terraform-provider-grafana/pull/1599) - Config Generation: Even more references by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1595](https://togithub.com/grafana/terraform-provider-grafana/pull/1595) - Bump github.com/hashicorp/go-retryablehttp from 0.7.6 to 0.7.7 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/grafana/terraform-provider-grafana/pull/1605](https://togithub.com/grafana/terraform-provider-grafana/pull/1605) - Bump github.com/hashicorp/terraform-plugin-docs from 0.19.2 to 0.19.3 in the terraform group by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/grafana/terraform-provider-grafana/pull/1602](https://togithub.com/grafana/terraform-provider-grafana/pull/1602) - SSO: Add the new role_values_viewer field to SSO SAML settings by [@​dmihai](https://togithub.com/dmihai) in [https://github.com/grafana/terraform-provider-grafana/pull/1600](https://togithub.com/grafana/terraform-provider-grafana/pull/1600) - Fix deleting mute timings that are in use by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1608](https://togithub.com/grafana/terraform-provider-grafana/pull/1608) - Contact Points: Add recreation test by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1614](https://togithub.com/grafana/terraform-provider-grafana/pull/1614) - Rule group detect rule name conflicts by [@​WeberKuo](https://togithub.com/WeberKuo) in [https://github.com/grafana/terraform-provider-grafana/pull/1610](https://togithub.com/grafana/terraform-provider-grafana/pull/1610) #### New Contributors - [@​gaurav1999](https://togithub.com/gaurav1999) made their first contribution in [https://github.com/grafana/terraform-provider-grafana/pull/1576](https://togithub.com/grafana/terraform-provider-grafana/pull/1576) - [@​inikotoran](https://togithub.com/inikotoran) made their first contribution in [https://github.com/grafana/terraform-provider-grafana/pull/1553](https://togithub.com/grafana/terraform-provider-grafana/pull/1553) - [@​WeberKuo](https://togithub.com/WeberKuo) made their first contribution in [https://github.com/grafana/terraform-provider-grafana/pull/1610](https://togithub.com/grafana/terraform-provider-grafana/pull/1610) **Full Changelog**: https://github.com/grafana/terraform-provider-grafana/compare/v3.0.0...v3.1.0 ### [`v3.0.0`](https://togithub.com/grafana/terraform-provider-grafana/releases/tag/v3.0.0) [Compare Source](https://togithub.com/grafana/terraform-provider-grafana/compare/v2.19.2...v3.0.0) #### Recommended upgrade procedure Bump the Terraform provider to the latest v2 version, apply, then upgrade to v3 and remove/replace all the attributes that have been removed. #### Major features ##### Terraform Config Generation (Alpha version) See the README [here](https://togithub.com/grafana/terraform-provider-grafana/blob/main/cmd/generate/README.md). This is a new tool that will be developed further in future releases. It can be pointed at a Grafana instance or at a Grafana Cloud account and it will find all Grafana provider resources and generate the Terraform config for them. Example (with the binary from this release): ```console ./terraform-provider-grafana-generate_3.0.0_darwin_arm64 --output-dir test --grafana-auth=admin:admin --grafana-url=http://localhost:3000/ ``` ##### Grafana 11 Support Some Terraform features had to be removed to enable full Grafana 11 support. All resources should now work with Grafana 11 (Cloud, on-prem Enterprise and on-prem OSS). #### Breaking changes ##### Removed the global (provider-level) `org_id` setting Reasons for its removal: - The attribute was already added on each resource, so it doesn't remove any functionality - It's irrelevant to all parts of the provider other than Grafana resources, possibly causing confusing since there's also an org concept on cloud resources - Even for Grafana, it does not apply to all resources. For example, users are not org-scoped. By setting it on a resource level, this is much better defined - When using it globally, it prevents looping on multiple orgs. Ex: Create dashboards for a list of orgs. Providers cannot be created dynamically ##### Removed support for old ID separators (converge on `:`) This makes importing resources consistent across all parts of the provider. For example: ```console terraform import grafana_folder.test orgID:folderUID terraform import grafana_dashboard.test orgID:dashboardUID ``` ##### Removed deprecated resources - `grafana_api_key`: Use `grafana_service_account` instead - `grafana_cloud_stack_api_key`: Use `grafana_cloud_stack_service_account` instead - `grafana_cloud_api_key`: Use `grafana_cloud_access_policy` instead - ` grafana_oncall_action `: Use `grafana_oncall_outgoing_webhook` instead ##### Removed deprecated attributes - Removed numerical IDs (of dashboards, folders, datasources) in favour of UIDs - `grafana_report` dashboard definition converged onto a single `dashboards {}` block - `cloud_api_key` provider attribute: Use `cloud_access_policy_token` instead #### Changelog - SSO: Improve SSO settings examples by [@​dmihai](https://togithub.com/dmihai) in [https://github.com/grafana/terraform-provider-grafana/pull/1549](https://togithub.com/grafana/terraform-provider-grafana/pull/1549) - Deprecate global `org_id` config by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1516](https://togithub.com/grafana/terraform-provider-grafana/pull/1516) - Deprecate old ID separators by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1518](https://togithub.com/grafana/terraform-provider-grafana/pull/1518) - Deprecate Cloud API keys by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1517](https://togithub.com/grafana/terraform-provider-grafana/pull/1517) - Remove all deprecated attributes and resources by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1529](https://togithub.com/grafana/terraform-provider-grafana/pull/1529) - Fix README links and images by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1554](https://togithub.com/grafana/terraform-provider-grafana/pull/1554) - Add goreleaser config for code generation tool by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1555](https://togithub.com/grafana/terraform-provider-grafana/pull/1555) - Code Generation: Add readme and warnings by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1556](https://togithub.com/grafana/terraform-provider-grafana/pull/1556) - Link changelog in TF provider docs by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1559](https://togithub.com/grafana/terraform-provider-grafana/pull/1559) - Update synthetic monitoring frequency value validation by [@​tomaszgawliksa](https://togithub.com/tomaszgawliksa) in [https://github.com/grafana/terraform-provider-grafana/pull/1561](https://togithub.com/grafana/terraform-provider-grafana/pull/1561) - Clear out CHANGELOG.md by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1560](https://togithub.com/grafana/terraform-provider-grafana/pull/1560) - Bump github.com/hashicorp/terraform-plugin-mux from 0.15.0 to 0.16.0 in the terraform group by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/grafana/terraform-provider-grafana/pull/1562](https://togithub.com/grafana/terraform-provider-grafana/pull/1562) - Bump github.com/fatih/color from 1.16.0 to 1.17.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/grafana/terraform-provider-grafana/pull/1564](https://togithub.com/grafana/terraform-provider-grafana/pull/1564) - Bump github.com/hashicorp/go-retryablehttp from 0.7.5 to 0.7.6 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/grafana/terraform-provider-grafana/pull/1563](https://togithub.com/grafana/terraform-provider-grafana/pull/1563) - Run tests on Grafana v11 by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1415](https://togithub.com/grafana/terraform-provider-grafana/pull/1415) - Cloud: Fix SM installation test by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1568](https://togithub.com/grafana/terraform-provider-grafana/pull/1568) - Cloud: More test fixes by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1569](https://togithub.com/grafana/terraform-provider-grafana/pull/1569) #### New Contributors - [@​tomaszgawliksa](https://togithub.com/tomaszgawliksa) made their first contribution in [https://github.com/grafana/terraform-provider-grafana/pull/1561](https://togithub.com/grafana/terraform-provider-grafana/pull/1561) **Full Changelog**: https://github.com/grafana/terraform-provider-grafana/compare/v2.19.0...v3.0.0 ### [`v2.19.2`](https://togithub.com/grafana/terraform-provider-grafana/releases/tag/v2.19.2) [Compare Source](https://togithub.com/grafana/terraform-provider-grafana/compare/v2.19.1...v2.19.2) #### What's Changed - Alerting Rule Group: Support colon in title by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1643](https://togithub.com/grafana/terraform-provider-grafana/pull/1643) - Add request header for SLO provenance ([#​1617](https://togithub.com/grafana/terraform-provider-grafana/issues/1617)) by [@​julienduchesne](https://togithub.com/julienduchesne) in [https://github.com/grafana/terraform-provider-grafana/pull/1626](https://togithub.com/grafana/terraform-provider-grafana/pull/1626) **Full Changelog**: https://github.com/grafana/terraform-provider-grafana/compare/v2.19.1...v2.19.2

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] commented 1 month ago

ℹ Artifact update notice

File name: provider/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

Details:

Package Change
github.com/fatih/color v1.16.0 -> v1.17.0
github.com/grafana/slo-openapi-client/go v0.0.0-20240112175006-de02e75b9d73 -> v0.0.0-20240507015908-bf9e85638f2f
github.com/hashicorp/go-hclog v1.5.0 -> v1.6.3
github.com/hashicorp/go-retryablehttp v0.7.5 -> v0.7.7
github.com/hashicorp/go-version v1.6.0 -> v1.7.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 -> v2.34.0
golang.org/x/mod v0.16.0 -> v0.17.0
renovate[bot] commented 3 weeks ago

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 3.x releases. But if you manually upgrade to 3.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.