From 4c5cc0b682d3a97ec6d77ffbec1980d3a64bac35 Mon Sep 17 00:00:00 2001 From: "blink-so[bot]" <211532188+blink-so[bot]@users.noreply.github.com> Date: Thu, 28 Aug 2025 10:55:52 +0000 Subject: [PATCH 1/4] docs: add Premium license warning for external_agent resource Co-authored-by: M Atif Ali --- docs/resources/external_agent.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/resources/external_agent.md b/docs/resources/external_agent.md index b6d0b8a..d859467 100644 --- a/docs/resources/external_agent.md +++ b/docs/resources/external_agent.md @@ -10,7 +10,8 @@ description: |- Define an external agent to be used in a workspace. - +> [!WARNING] +> External agents require a Premium Coder license. This feature is not available with the free tier. ## Schema From 7af6222fb6c718d10a3aa30c69707313525dea6a Mon Sep 17 00:00:00 2001 From: "blink-so[bot]" <211532188+blink-so[bot]@users.noreply.github.com> Date: Thu, 28 Aug 2025 10:58:33 +0000 Subject: [PATCH 2/4] fix: add Premium license warning to external_agent resource description The warning needs to be in the Go code description field so it gets auto-generated into the documentation. Co-authored-by: M Atif Ali --- provider/external_agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/external_agent.go b/provider/external_agent.go index 2856c2b..7018607 100644 --- a/provider/external_agent.go +++ b/provider/external_agent.go @@ -12,7 +12,7 @@ func externalAgentResource() *schema.Resource { return &schema.Resource{ SchemaVersion: 1, - Description: "Define an external agent to be used in a workspace.", + Description: "Define an external agent to be used in a workspace.\n\n~> **Warning:** External agents require a Premium Coder license. This feature is not available with the free tier.", CreateContext: func(ctx context.Context, rd *schema.ResourceData, _ interface{}) diag.Diagnostics { rd.SetId(uuid.NewString()) return nil From 5324f10cda842bb22e5183801c3ddbdc96e44dfd Mon Sep 17 00:00:00 2001 From: "blink-so[bot]" <211532188+blink-so[bot]@users.noreply.github.com> Date: Thu, 28 Aug 2025 11:06:16 +0000 Subject: [PATCH 3/4] docs: remove manual markdown edit to let auto-generation handle warning The warning is now properly added in the Go code description field and will be auto-generated into the documentation. Co-authored-by: M Atif Ali --- docs/resources/external_agent.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/resources/external_agent.md b/docs/resources/external_agent.md index d859467..b6d0b8a 100644 --- a/docs/resources/external_agent.md +++ b/docs/resources/external_agent.md @@ -10,8 +10,7 @@ description: |- Define an external agent to be used in a workspace. -> [!WARNING] -> External agents require a Premium Coder license. This feature is not available with the free tier. + ## Schema From 7f9f7b15c4e24c425fce175940e7c5f7858d3788 Mon Sep 17 00:00:00 2001 From: "blink-so[bot]" <211532188+blink-so[bot]@users.noreply.github.com> Date: Thu, 28 Aug 2025 11:08:50 +0000 Subject: [PATCH 4/4] docs: add Premium license warning with pricing link to external_agent Updated the Go code description to include a warning about Premium license requirement with a link to pricing, then ran make gen to regenerate the documentation. Co-authored-by: M Atif Ali --- docs/resources/external_agent.md | 3 +++ provider/external_agent.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/resources/external_agent.md b/docs/resources/external_agent.md index b6d0b8a..b33f5b7 100644 --- a/docs/resources/external_agent.md +++ b/docs/resources/external_agent.md @@ -4,12 +4,15 @@ page_title: "coder_external_agent Resource - terraform-provider-coder" subcategory: "" description: |- Define an external agent to be used in a workspace. + ~> Warning: External agents require a Premium https://coder.com/pricing Coder license. --- # coder_external_agent (Resource) Define an external agent to be used in a workspace. +~> **Warning:** External agents require a [Premium](https://coder.com/pricing) Coder license. + diff --git a/provider/external_agent.go b/provider/external_agent.go index 7018607..b59856a 100644 --- a/provider/external_agent.go +++ b/provider/external_agent.go @@ -12,7 +12,7 @@ func externalAgentResource() *schema.Resource { return &schema.Resource{ SchemaVersion: 1, - Description: "Define an external agent to be used in a workspace.\n\n~> **Warning:** External agents require a Premium Coder license. This feature is not available with the free tier.", + Description: "Define an external agent to be used in a workspace.\n\n~> **Warning:** External agents require a [Premium](https://coder.com/pricing) Coder license.", CreateContext: func(ctx context.Context, rd *schema.ResourceData, _ interface{}) diag.Diagnostics { rd.SetId(uuid.NewString()) return nil