feat(provider)!: remove marketplace_panel resource and data source - #21
Conversation
Cozystack 1.6 deleted the dashboard.cozystack.io API group upstream: the controller is gone and the platform migration runs kubectl delete crd on marketplacepanels.dashboard.cozystack.io during the upgrade. On a 1.6 cluster every cozystack_marketplace_panel call now fails with no-matches-for-kind, so the resource and data source are removed outright rather than deprecated. BREAKING CHANGE: cozystack_marketplace_panel resource and data source are gone. Practitioners must run terraform state rm on any existing cozystack_marketplace_panel entries before upgrading the provider. Assisted-By: Claude <noreply@anthropic.com> Signed-off-by: Aleksei Sviridkin <f@lex.la>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
IvanHunters
left a comment
There was a problem hiding this comment.
Verdict
LGTM
Summary
Clean, complete removal of the cozystack_marketplace_panel resource and data source. The dashboard.cozystack.io/MarketplacePanel wiring is torn out at every layer — provider registration (provider.go Resources + DataSources), the MarketplacePanelResource() group declaration (groups.go), the two schema constructors (rawspec_schema.go), the generated docs, and both example files. README and the groups.go header comment are updated to match.
Verification
go build ./...-> exit 0go vet ./internal/...-> exit 0grep -rin "marketplace|MarketplacePanel|dashboard.cozystack.io"over*.go/*.tf/*.md: no dangling code references. The only remaining hits are benign:CHANGELOG.md:23— a historical record of what v1.4.2 shipped (accurate as history).README.md:73— states thedashboard.cozystack.ioUI CRDs are deliberately not exposed; after this removal that line is more accurate, not less.
- No acceptance/unit test referenced the removed kind, so nothing to update.
- The removed schema constructors and
MarketplacePanelResource()had exactly one caller each (the registration lines removed in the same diff) — no orphaned symbols or unused imports left behind.
Notes (non-blocking)
- Upgrade guidance for the breaking removal. The PR is correctly marked breaking (
!). A user who already hascozystack_marketplace_panelin state will hit a "resource type not found" error on the first plan after upgrading, and must runterraform state rmfor those addresses. This PR is stacked onfeat/cozystack-1.6and the branch has no 1.6 CHANGELOG section yet, so I assume release notes are centralized for the whole 1.6 stack. Please make sure the eventual 1.6 changelog/upgrade note spells out theterraform state rm cozystack_marketplace_panel.<name>step — it is the only migration action users need and it is easy to lose across a multi-PR stack.
Nothing here blocks merge.
VerdictLGTM with non-blocking notes Removal of the Findings[MINOR] The line reads: "Deliberately not exposed: the Claim mismatches[UNVERIFIABLE] "Generated docs are up to date ( Caveats
Recommended follow-ups
|
Pull Request
Summary
Cozystack 1.6 deleted the
dashboard.cozystack.ioAPI group: the controller is gone and the platform migration drops the MarketplacePanel CRD during upgrade, so provider calls fail on any 1.6 cluster. This removes thecozystack_marketplace_panelresource and data source with their examples, docs and the now-empty client group declaration.Breaking change: run
terraform state rmon existingcozystack_marketplace_panelresources and drop them from configuration before upgrading.Changes
cozystack_marketplace_panelresource and data source registrations and schemasdashboard.cozystack.ioclient group declaration, which had no other consumerTesting
make test): the branch inherits 7 spec-coverage failures from the integration base (v1.6.1 pin bump). The sibling field-modeling PRs fix them. This diff adds zero new failures, checked against the merge base.make lint)make docsproduces no diff)make testacc), if applicable: not run in this passDocumentation
examples/(removed together with the resource)make docs)Checklist
type(scope): description)Additional Notes
Targets the
feat/cozystack-1.6integration branch, notmaster.