Skip to content

[Backport release-1.4] chore(controller): remove dead dashboard controller - #2713

Closed
github-actions[bot] wants to merge 2 commits into
release-1.4from
backport-2694-to-release-1.4
Closed

github-actions[bot] wants to merge 2 commits into
release-1.4from
backport-2694-to-release-1.4

Conversation

@github-actions

Copy link
Copy Markdown

Description

Backport of #2694 to release-1.4.

Andrei Kvapil (kvaps) and others added 2 commits May 21, 2026 13:08
The dashboard controller used to project ApplicationDefinitions
into a set of dashboard.cozystack.io CRDs (Sidebar, Factory,
Navigation, Breadcrumb, CustomFormsOverride, CustomFormsPrefill,
CustomColumnsOverride, MarketplacePanel, TableUriMapping,
CFOMapping, BreadcrumbInside) consumed by the legacy UI.

cozystack-ui now reads ApplicationDefinitions directly, so the
controller, its API types, the generated CRDs and the related
RBAC rules are no longer used.

Removes:
- internal/controller/dashboard
- api/dashboard/v1alpha1
- packages/system/cozystack-controller/definitions/dashboard.cozystack.io_*.yaml
- dashboard.cozystack.io wiring from cmd/cozystack-controller/main.go
- dashboard.cozystack.io RBAC rules from cozystack-controller and cozy-dashboard charts
- ./api/dashboard/... codegen path from hack/update-codegen.sh

Co-Authored-By: Claude <[email protected]>
Signed-off-by: Andrei Kvapil <[email protected]>
(cherry picked from commit 4d5486c)
Existing clusters still have the legacy dashboard.cozystack.io CRDs
installed even after the dashboard controller has been removed.
Add a platform migration that deletes them and bump targetVersion
to 41.

Co-Authored-By: Claude <[email protected]>
Signed-off-by: Andrei Kvapil <[email protected]>
(cherry picked from commit 1c059b3)
@dosubot dosubot Bot added area/dashboard Issues or PRs related to the dashboard / UI kind/backport-previous Categorizes issue or PR as requiring a backport to the previous release line kind/cleanup Categorizes issue or PR as related to cleanup of code, process, or technical debt labels May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/dashboard Issues or PRs related to the dashboard / UI kind/backport-previous Categorizes issue or PR as requiring a backport to the previous release line kind/cleanup Categorizes issue or PR as related to cleanup of code, process, or technical debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants