chore: remove beta state from service account (#803)

This commit is contained in:
Mauritz Uphoff 2025-05-07 11:34:30 +02:00 committed by GitHub
parent af1b6fee3b
commit 9cd402e09f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 4 additions and 40 deletions

View file

@ -25,7 +25,6 @@ import (
"github.com/stackitcloud/stackit-sdk-go/services/serviceaccount"
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/conversion"
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/core"
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/features"
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/validate"
)
@ -73,11 +72,6 @@ func (r *serviceAccountTokenResource) Configure(ctx context.Context, req resourc
return
}
features.CheckBetaResourcesEnabled(ctx, &providerData, &resp.Diagnostics, "stackit_service_account_access_token", "resource")
if resp.Diagnostics.HasError() {
return
}
// Initialize the API client with the appropriate authentication and endpoint settings.
var apiClient *serviceaccount.APIClient
var err error
@ -124,7 +118,7 @@ func (r *serviceAccountTokenResource) Schema(_ context.Context, _ resource.Schem
"valid_until": "Estimated expiration timestamp of the access token. For precise validity, check the JWT details.",
}
resp.Schema = schema.Schema{
MarkdownDescription: fmt.Sprintf("%s%s", features.AddBetaDescription(descriptions["main"]), markdownDescription),
MarkdownDescription: fmt.Sprintf("%s%s", descriptions["main"], markdownDescription),
Description: descriptions["main"],
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{