Skip to content

Commit a9971e1

Browse files
committed
feat: deprecate cockpit grafana user resource
1 parent 04f383a commit a9971e1

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

docs/resources/cockpit_grafana_user.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ page_title: "Scaleway: scaleway_cockpit_grafana_user"
55

66
# Resource: scaleway_cockpit_grafana_user
77

8+
-> **Important:** This resource is deprecated and will be removed in a future version. Scaleway is deprecating Grafana users in favor of alternative authentication methods. Please refer to Scaleway's documentation for migration guidance.
9+
810
The `scaleway_cockpit_grafana_user` resource allows you to create and manage [Grafana users](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#grafana-users) in Scaleway Cockpit.
911

1012
Refer to Cockpit's [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/) and [API documentation](https://www.scaleway.com/en/developers/api/cockpit/regional-api) for more information.

internal/services/cockpit/grafana_user.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ import (
1717

1818
func ResourceCockpitGrafanaUser() *schema.Resource {
1919
return &schema.Resource{
20-
CreateContext: ResourceCockpitGrafanaUserCreate,
21-
ReadContext: ResourceCockpitGrafanaUserRead,
22-
DeleteContext: ResourceCockpitGrafanaUserDelete,
20+
CreateContext: ResourceCockpitGrafanaUserCreate,
21+
ReadContext: ResourceCockpitGrafanaUserRead,
22+
DeleteContext: ResourceCockpitGrafanaUserDelete,
23+
DeprecationMessage: "This resource is deprecated and will be removed in a future version. Scaleway is deprecating Grafana users in favor of alternative authentication methods.",
2324
Timeouts: &schema.ResourceTimeout{
2425
Create: schema.DefaultTimeout(DefaultCockpitTimeout),
2526
Read: schema.DefaultTimeout(DefaultCockpitTimeout),

templates/resources/cockpit_grafana_user.md.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ page_title: "Scaleway: scaleway_cockpit_grafana_user"
66

77
# Resource: scaleway_cockpit_grafana_user
88

9+
-> **Important:** This resource is deprecated and will be removed in a future version. Scaleway is deprecating Grafana users in favor of alternative authentication methods. Please refer to Scaleway's documentation for migration guidance.
10+
911
The `scaleway_cockpit_grafana_user` resource allows you to create and manage [Grafana users](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#grafana-users) in Scaleway Cockpit.
1012

1113
Refer to Cockpit's [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/) and [API documentation](https://www.scaleway.com/en/developers/api/cockpit/regional-api) for more information.

0 commit comments

Comments
 (0)