From 57427d2b8170b7ffc95fb72d0bb5e133c0fe40b9 Mon Sep 17 00:00:00 2001 From: Christof Huber Date: Tue, 26 Nov 2024 09:37:55 +0100 Subject: [PATCH] fix: readd crucial documentation about curly brackets for tags or repositories (#481) The behaviour was initially documented with https://github.com/goharbor/terraform-provider-harbor/pull/324 but seems to have been lost with https://github.com/goharbor/terraform-provider-harbor/pull/412. --------- Signed-off-by: Florian Blampey Co-authored-by: Christof Huber Co-authored-by: Florian Blampey --- docs/resources/retention_policy.md | 2 ++ templates/resources/retention_policy.md.tmpl | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/resources/retention_policy.md b/docs/resources/retention_policy.md index 66bb2c7..880f442 100644 --- a/docs/resources/retention_policy.md +++ b/docs/resources/retention_policy.md @@ -52,6 +52,8 @@ resource "harbor_retention_policy" "main" { ### Nested Schema for `rule` +~> Multiple tags or repositories must be provided as a comma-separated list wrapped into curly brackets `{ }`. Otherwise, the value is interpreted as a single value. + Optional: - `always_retain` (Boolean) retain always. diff --git a/templates/resources/retention_policy.md.tmpl b/templates/resources/retention_policy.md.tmpl index eaa3d24..41e458e 100644 --- a/templates/resources/retention_policy.md.tmpl +++ b/templates/resources/retention_policy.md.tmpl @@ -37,6 +37,8 @@ For example, the {{ .SchemaMarkdown }} template can be used to replace manual sc ### Nested Schema for `rule` +~> Multiple tags or repositories must be provided as a comma-separated list wrapped into curly brackets `{ }`. Otherwise, the value is interpreted as a single value. + Optional: - `always_retain` (Boolean) retain always.