From 1e9539eaeb9825a6709cb5876729d3de5c1174a8 Mon Sep 17 00:00:00 2001 From: Andreas Grub Date: Thu, 2 Jul 2026 20:22:18 +0200 Subject: [PATCH] feat: deprecate meshstack_tenant in favor of meshstack_tenant_v4 The meshstack_tenant resource does not expose the tenant uuid, which meshstack_building_block requires to target a tenant. Only meshstack_tenant_v4 exposes uuid/ref, so add a DeprecationMessage steering users to it. There is no automatic state migration between the two resource types (no state mover), so the message points users to importing into meshstack_tenant_v4. Co-Authored-By: Claude Opus 4.8 (1M context) --- CHANGELOG.md | 5 +++++ internal/provider/tenant_resource.go | 1 + 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c596192..058eaa0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# v0.23.1 + +DEPRECATIONS: +- `meshstack_tenant`: deprecated in favor of `meshstack_tenant_v4`. Only `meshstack_tenant_v4` exposes the tenant `uuid` (and a `ref`) required to target tenants from the `meshstack_building_block` resource. Using `meshstack_tenant` now emits a deprecation warning. There is no automatic state migration between the two resource types; move existing tenants over by importing them into `meshstack_tenant_v4`. + # v0.23.0 FEATURES: diff --git a/internal/provider/tenant_resource.go b/internal/provider/tenant_resource.go index 2df17e26..1b07b75c 100644 --- a/internal/provider/tenant_resource.go +++ b/internal/provider/tenant_resource.go @@ -43,6 +43,7 @@ func (r *tenantResource) Configure(_ context.Context, req resource.ConfigureRequ func (r *tenantResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) { resp.Schema = schema.Schema{ MarkdownDescription: "Single tenant by workspace, project, and platform.", + DeprecationMessage: "Use `meshstack_tenant_v4` instead, which exposes the tenant `uuid` (and a `ref`) required to target tenants from `meshstack_building_block`. There is no automatic state migration between the two resource types; move existing tenants over by importing them into `meshstack_tenant_v4`.", Attributes: map[string]schema.Attribute{ "metadata": schema.SingleNestedAttribute{