Skip to content

Commit 9cd402e

Browse files
authored
chore: remove beta state from service account (#803)
1 parent af1b6fe commit 9cd402e

File tree

8 files changed

+4
-40
lines changed

8 files changed

+4
-40
lines changed

docs/data-sources/service_account.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,12 @@ page_title: "stackit_service_account Data Source - stackit"
44
subcategory: ""
55
description: |-
66
Service account data source schema.
7-
~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources for how to opt-in to use beta resources.
87
---
98

109
# stackit_service_account (Data Source)
1110

1211
Service account data source schema.
1312

14-
~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our [guide](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources) for how to opt-in to use beta resources.
15-
1613
## Example Usage
1714

1815
```terraform

docs/resources/service_account.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,12 @@ page_title: "stackit_service_account Resource - stackit"
44
subcategory: ""
55
description: |-
66
Service account resource schema.
7-
~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources for how to opt-in to use beta resources.
87
---
98

109
# stackit_service_account (Resource)
1110

1211
Service account resource schema.
1312

14-
~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our [guide](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources) for how to opt-in to use beta resources.
15-
1613
## Example Usage
1714

1815
```terraform

docs/resources/service_account_access_token.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ page_title: "stackit_service_account_access_token Resource - stackit"
44
subcategory: ""
55
description: |-
66
Service account access token schema.
7-
~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources for how to opt-in to use beta resources.
87
Example Usage
98
Automatically rotate access tokens
109
@@ -31,8 +30,6 @@ description: |-
3130
# stackit_service_account_access_token (Resource)
3231

3332
Service account access token schema.
34-
35-
~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our [guide](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources) for how to opt-in to use beta resources.
3633
## Example Usage
3734

3835

docs/resources/service_account_key.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ page_title: "stackit_service_account_key Resource - stackit"
44
subcategory: ""
55
description: |-
66
Service account key schema.
7-
~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources for how to opt-in to use beta resources.
87
Example Usage
98
Automatically rotate service account keys
109
@@ -31,8 +30,6 @@ description: |-
3130
# stackit_service_account_key (Resource)
3231

3332
Service account key schema.
34-
35-
~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our [guide](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources) for how to opt-in to use beta resources.
3633
## Example Usage
3734

3835

stackit/internal/services/serviceaccount/account/datasource.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212
"github.com/stackitcloud/stackit-sdk-go/core/config"
1313
"github.com/stackitcloud/stackit-sdk-go/services/serviceaccount"
1414
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/core"
15-
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/features"
1615
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/utils"
1716
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/validate"
1817
)
@@ -45,11 +44,6 @@ func (r *serviceAccountDataSource) Configure(ctx context.Context, req datasource
4544
return
4645
}
4746

48-
features.CheckBetaResourcesEnabled(ctx, &providerData, &resp.Diagnostics, "stackit_service_account", "datasource")
49-
if resp.Diagnostics.HasError() {
50-
return
51-
}
52-
5347
var apiClient *serviceaccount.APIClient
5448
var err error
5549
if providerData.ServiceAccountCustomEndpoint != "" {
@@ -90,7 +84,7 @@ func (r *serviceAccountDataSource) Schema(_ context.Context, _ datasource.Schema
9084
// The datasource schema differs slightly from the resource schema.
9185
// In this case, the email attribute is required to read the service account data from the API.
9286
resp.Schema = schema.Schema{
93-
MarkdownDescription: features.AddBetaDescription("Service account data source schema."),
87+
MarkdownDescription: "Service account data source schema.",
9488
Description: "Service account data source schema.",
9589
Attributes: map[string]schema.Attribute{
9690
"id": schema.StringAttribute{

stackit/internal/services/serviceaccount/account/resource.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"github.com/stackitcloud/stackit-sdk-go/services/serviceaccount"
2121
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/conversion"
2222
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/core"
23-
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/features"
2423
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/validate"
2524
)
2625

@@ -63,11 +62,6 @@ func (r *serviceAccountResource) Configure(ctx context.Context, req resource.Con
6362
return
6463
}
6564

66-
features.CheckBetaResourcesEnabled(ctx, &providerData, &resp.Diagnostics, "stackit_service_account", "resource")
67-
if resp.Diagnostics.HasError() {
68-
return
69-
}
70-
7165
// Initialize the API client with the appropriate authentication and endpoint settings.
7266
var apiClient *serviceaccount.APIClient
7367
var err error
@@ -108,7 +102,7 @@ func (r *serviceAccountResource) Schema(_ context.Context, _ resource.SchemaRequ
108102
}
109103

110104
resp.Schema = schema.Schema{
111-
MarkdownDescription: features.AddBetaDescription("Service account resource schema."),
105+
MarkdownDescription: "Service account resource schema.",
112106
Description: "Service account resource schema.",
113107
Attributes: map[string]schema.Attribute{
114108
"id": schema.StringAttribute{

stackit/internal/services/serviceaccount/key/resource.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
"github.com/stackitcloud/stackit-sdk-go/services/serviceaccount"
2525
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/conversion"
2626
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/core"
27-
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/features"
2827
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/utils"
2928
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/validate"
3029
)
@@ -71,11 +70,6 @@ func (r *serviceAccountKeyResource) Configure(ctx context.Context, req resource.
7170
return
7271
}
7372

74-
features.CheckBetaResourcesEnabled(ctx, &providerData, &resp.Diagnostics, "stackit_service_account_key", "resource")
75-
if resp.Diagnostics.HasError() {
76-
return
77-
}
78-
7973
// Initialize the API client with the appropriate authentication and endpoint settings.
8074
var apiClient *serviceaccount.APIClient
8175
var err error
@@ -120,7 +114,7 @@ func (r *serviceAccountKeyResource) Schema(_ context.Context, _ resource.SchemaR
120114
"json": "The raw JSON representation of the service account key json, available for direct use.",
121115
}
122116
resp.Schema = schema.Schema{
123-
MarkdownDescription: fmt.Sprintf("%s%s", features.AddBetaDescription(descriptions["main"]), markdownDescription),
117+
MarkdownDescription: fmt.Sprintf("%s%s", descriptions["main"], markdownDescription),
124118
Description: descriptions["main"],
125119
Attributes: map[string]schema.Attribute{
126120
"id": schema.StringAttribute{

stackit/internal/services/serviceaccount/token/resource.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525
"github.com/stackitcloud/stackit-sdk-go/services/serviceaccount"
2626
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/conversion"
2727
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/core"
28-
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/features"
2928
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/validate"
3029
)
3130

@@ -73,11 +72,6 @@ func (r *serviceAccountTokenResource) Configure(ctx context.Context, req resourc
7372
return
7473
}
7574

76-
features.CheckBetaResourcesEnabled(ctx, &providerData, &resp.Diagnostics, "stackit_service_account_access_token", "resource")
77-
if resp.Diagnostics.HasError() {
78-
return
79-
}
80-
8175
// Initialize the API client with the appropriate authentication and endpoint settings.
8276
var apiClient *serviceaccount.APIClient
8377
var err error
@@ -124,7 +118,7 @@ func (r *serviceAccountTokenResource) Schema(_ context.Context, _ resource.Schem
124118
"valid_until": "Estimated expiration timestamp of the access token. For precise validity, check the JWT details.",
125119
}
126120
resp.Schema = schema.Schema{
127-
MarkdownDescription: fmt.Sprintf("%s%s", features.AddBetaDescription(descriptions["main"]), markdownDescription),
121+
MarkdownDescription: fmt.Sprintf("%s%s", descriptions["main"], markdownDescription),
128122
Description: descriptions["main"],
129123
Attributes: map[string]schema.Attribute{
130124
"id": schema.StringAttribute{

0 commit comments

Comments
 (0)