Repository navigation
Commit ce8e738
authored
chore(controller): remove dead dashboard controller (#2694)
## What this PR does
Removes the dashboard controller and its API surface. cozystack-ui now
consumes `ApplicationDefinition` resources directly, so the controller
that projected them into a set of `dashboard.cozystack.io` CRDs
(Sidebar, Factory, Navigation, Breadcrumb, CustomFormsOverride,
CustomFormsPrefill, CustomColumnsOverride, MarketplacePanel,
TableUriMapping, CFOMapping, BreadcrumbInside) is dead code.
Removed:
- `internal/controller/dashboard/` Go package
- `api/dashboard/v1alpha1/` API types
-
`packages/system/cozystack-controller/definitions/dashboard.cozystack.io_*.yaml`
CRDs
- `dashboard.cozystack.io` wiring in `cmd/cozystack-controller/main.go`
- `dashboard.cozystack.io` RBAC rules in the `cozystack-controller` and
`cozy-dashboard` charts
- `./api/dashboard/...` codegen path in `hack/update-codegen.sh`
The `spec.dashboard` field on `ApplicationDefinition` is intentionally
kept — it is populated by `hack/update-crd.sh` and read directly by
cozystack-ui.
### Release note
```release-note
chore(controller): remove the dashboard controller and dashboard.cozystack.io CRDs; cozystack-ui now reads ApplicationDefinitions directly.
```
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Removed dashboard-related APIs, controllers, and UI integrations,
disabling dashboard custom resources and related runtime behavior.
* Removed dashboard CRDs from deployments and added a migration to clean
up obsolete dashboard CRDs.
* Updated RBAC to remove dashboard API group access and bumped platform
migration target version.
* **Documentation**
* Removed dashboard integration and configuration guides.
<!-- review_stack_entry_start -->
[](https://app.coderabbit.ai/change-stack/cozystack/cozystack/pull/2694?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)
<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->39 files changed
Lines changed: 46 additions & 10910 deletions
File tree
- api/dashboard/v1alpha1
- cmd/cozystack-controller
- hack
- internal/controller/dashboard
- packages
- core/platform
- images/migrations/migrations
- system
- cozystack-controller
- definitions
- templates
- dashboard/templates
This file was deleted.
This file was deleted.
0 commit comments