From 0ec07bc197ba569c82aac653d92ee012b725539d Mon Sep 17 00:00:00 2001 From: Marcel Jacek <72880145+marceljk@users.noreply.github.com> Date: Tue, 12 Aug 2025 11:04:09 +0200 Subject: [PATCH] docs: update docs of labels in resourcemanager_project resource (#951) - add hint that networkArea can only be attached on project creation --- docs/resources/resourcemanager_project.md | 3 ++- stackit/internal/services/resourcemanager/project/resource.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/resources/resourcemanager_project.md b/docs/resources/resourcemanager_project.md index ce7e3095..9ffa5ebf 100644 --- a/docs/resources/resourcemanager_project.md +++ b/docs/resources/resourcemanager_project.md @@ -46,7 +46,8 @@ import { ### Optional -- `labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container. A label key must match the regex [A-ZÄÜÖa-zäüöß0-9_-]{1,64}. A label value must match the regex ^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}. To add a project to a STACKIT Network Area, setting the label `networkArea=` is required. +- `labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container. A label key must match the regex [A-ZÄÜÖa-zäüöß0-9_-]{1,64}. A label value must match the regex ^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}. +To create a project within a STACKIT Network Area, setting the label `networkArea=` is required. This can not be changed after project creation. ### Read-Only diff --git a/stackit/internal/services/resourcemanager/project/resource.go b/stackit/internal/services/resourcemanager/project/resource.go index e4f37309..e1573308 100644 --- a/stackit/internal/services/resourcemanager/project/resource.go +++ b/stackit/internal/services/resourcemanager/project/resource.go @@ -100,7 +100,7 @@ func (r *projectResource) Schema(_ context.Context, _ resource.SchemaRequest, re "container_id": "Project container ID. Globally unique, user-friendly identifier.", "parent_container_id": "Parent resource identifier. Both container ID (user-friendly) and UUID are supported", "name": "Project name.", - "labels": "Labels are key-value string pairs which can be attached to a resource container. A label key must match the regex [A-ZÄÜÖa-zäüöß0-9_-]{1,64}. A label value must match the regex ^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}. To add a project to a STACKIT Network Area, setting the label `networkArea=` is required.", + "labels": "Labels are key-value string pairs which can be attached to a resource container. A label key must match the regex [A-ZÄÜÖa-zäüöß0-9_-]{1,64}. A label value must match the regex ^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}. \nTo create a project within a STACKIT Network Area, setting the label `networkArea=` is required. This can not be changed after project creation.", "owner_email": "Email address of the owner of the project. This value is only considered during creation. Changing it afterwards will have no effect.", }