From 4cf4d2417244f01b285043586fdc817123df9e71 Mon Sep 17 00:00:00 2001 From: Aleksander Zaruczewski Date: Mon, 11 Sep 2023 12:56:21 -0400 Subject: [PATCH] chore(project): deprecate obsolete fields --- CHANGELOG.md | 1 + internal/sdkprovider/service/project/project.go | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e1b9d8f85..1544c2c4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ nav_order: 1 - Fix improper omitting in `ToAPI` - Fix Kafka Topic perfomance - Add OpenSearch Security Plugin support (`aiven_opensearch_security_plugin_config` resource) +- Deprecate `add_account_owners_admin_access` and `use_source_project_billing_group` fields in `aiven_project` resource ## [4.8.1] - 2023-08-23 diff --git a/internal/sdkprovider/service/project/project.go b/internal/sdkprovider/service/project/project.go index 24da1db94..d5b951451 100644 --- a/internal/sdkprovider/service/project/project.go +++ b/internal/sdkprovider/service/project/project.go @@ -58,11 +58,17 @@ var aivenProjectSchema = map[string]*schema.Schema{ Optional: true, DiffSuppressFunc: schemautil.CreateOnlyDiffSuppressFunc, Description: "Use the same billing group that is used in source project.", + Deprecated: "This field is deprecated and will be removed in the next major release.", }, "add_account_owners_admin_access": { Type: schema.TypeBool, Optional: true, Description: userconfig.Desc("If parent_id is set, grant account owner team admin access to the new project.").DefaultValue(true).Build(), + Deprecated: "This field is deprecated and will be removed in the next major release. " + + "Currently, it will always be set to true, regardless of the value set in the manifest.", + DiffSuppressFunc: func(_ string, _ string, _ string, _ *schema.ResourceData) bool { + return true + }, }, "project": { Type: schema.TypeString,