Skip to content

Commit af84af9

Browse files
freeznetclaude
andcommitted
docs: correct maintenance_window recurrence weekday mapping
The recurrence schema description claimed "0-6 for Monday to Sunday" (0 = Monday), but the cloud console scheduler maps the integer directly via dayjs `.day()` (0 = Sunday ... 6 = Saturday), matching Go's time.Weekday convention. The provider only round-trips recurrence as an opaque string, so this is a doc-only correction. Fixes the discrepancy reported in eng-support-tickets#4644 (Sympower): Terraform/CRD docs said 0=Monday while the console renders/executes 0=Sunday. Updates both the resource and data-source descriptions and regenerates docs/resources/pulsar_cluster.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 380b211 commit af84af9

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

cloud/data_source_pulsar_cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ func dataSourcePulsarCluster() *schema.Resource {
316316
"recurrence": {
317317
Type: schema.TypeString,
318318
Computed: true,
319-
Description: "Recurrence pattern for maintenance (0-6 for Monday to Sunday)",
319+
Description: "Recurrence pattern for maintenance: comma-separated weekday integers where 0 = Sunday and 6 = Saturday (e.g. \"0,6\" means Sunday and Saturday)",
320320
},
321321
},
322322
},

cloud/resource_pulsar_cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ func resourcePulsarCluster() *schema.Resource {
410410
"recurrence": {
411411
Type: schema.TypeString,
412412
Optional: true,
413-
Description: "Recurrence pattern for maintenance (0-6 for Monday to Sunday)",
413+
Description: "Recurrence pattern for maintenance: comma-separated weekday integers where 0 = Sunday and 6 = Saturday (e.g. \"0,6\" means Sunday and Saturday)",
414414
},
415415
},
416416
},

docs/resources/pulsar_cluster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Optional:
104104

105105
Optional:
106106

107-
- `recurrence` (String) Recurrence pattern for maintenance (0-6 for Monday to Sunday)
107+
- `recurrence` (String) Recurrence pattern for maintenance: comma-separated weekday integers where 0 = Sunday and 6 = Saturday (e.g. "0,6" means Sunday and Saturday)
108108
- `window` (Block List) Maintenance execution window (see [below for nested schema](#nestedblock--maintenance_window--window))
109109

110110
<a id="nestedblock--maintenance_window--window"></a>

0 commit comments

Comments
 (0)