Skip to content

Commit ce8e738

Browse files
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 --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](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 -->
2 parents 1d003ef + 1c059b3 commit ce8e738

39 files changed

Lines changed: 46 additions & 10910 deletions

‎api/dashboard/v1alpha1/dashboard_resources.go‎

Lines changed: 0 additions & 277 deletions
This file was deleted.

‎api/dashboard/v1alpha1/groupversion_info.go‎

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)