-
Notifications
You must be signed in to change notification settings - Fork 33
feat(dashboard): 完善后端架构并增强日志/备份/从库管理体验 #63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dashboard-preview
Are you sure you want to change the base?
feat(dashboard): 完善后端架构并增强日志/备份/从库管理体验 #63
Conversation
- Move dashboard backend/frontend under tools/dashboard\n- Add Dockerfile, all-in-one deploy script, and Helm example chart\n- Add optional Ingress template for helm-example\n- Standardize K8s object names (svc/deploy/config/secret) to polardbx-dashboard-backend\n- Docs: add minikube/kind image loading + local port-forward + cloud LB/Ingress guidance\n- Sync monitoring/logs/backup UI flows and related backend API changes
Change *.mod* to *.mod.c and *.mod.o to be more specific, preventing TypeScript model files from being ignored.
- Introduced Swagger API documentation with OpenAPI v3 specification. - Implemented health check endpoints: /health, /ready, and /version. - Enhanced error handling for Swagger spec retrieval. - Added unit tests for Swagger spec generation to ensure correctness.
…r creation - Add ProtocolVersion based on MySQL version (8 for 8.x, 5 for 5.x) - Set RPCProtocolVersion to '2' in CN static config - Set EnableCoroutine to true This fixes the cluster creation error: - spec.protocolVersion: Unsupported value: 0 - status.specSnapshot.config.cn.static.RPCProtocolVersion: Unsupported value: 0
…bedding from local addresses
…style diagnostic pod logic
…nitial load in rebuild form
… improve namespace handling in API service
…lection and role displa
…ncluding logs, progress, and pod details
…lasticsearch configuration and improve UI form handling
…om log strategies and improving error messages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR migrates the Dashboard backend and frontend to tools/dashboard/, consolidating the application structure and enhancing the management experience for logs, backups, and follower nodes. The changes include new deployment scripts, health check endpoints, Swagger documentation, and improved RBAC for platform configuration. The frontend receives UI/UX improvements including better XStore follower management and backup validation.
Key changes:
- Migration of Dashboard backend and frontend to unified
tools/dashboard/directory structure - Addition of deployment infrastructure (Dockerfile, deployment scripts, Helm charts)
- Backend enhancements: health/version endpoints, Swagger API documentation, RBAC for ConfigMap/Secret
- Frontend improvements: XStore follower management UI, backup validation, cluster creation wizard enhancements
Reviewed changes
Copilot reviewed 127 out of 580 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tools/dashboard/QUICK-START.md | Documentation for deploying Dashboard to Kubernetes |
| tools/dashboard/Dockerfile | Multi-stage build for frontend and backend |
| polardbx-ui/src/app/pages/nodes/nodes.component.ts | Removed nodes listing page component |
| polardbx-ui/src/app/pages/node-detail/node-detail.component.ts | Removed node detail page component |
| polardbx-ui/src/app/pages/connect/connect.component.ts | Removed connection page component |
| polardbx-ui/src/app/models/logs.model.ts | Removed log query models |
| polardbx-ui/src/app/components/xstore-rebuild/*.ts | Removed XStore rebuild UI components |
| polardbx-ui/src/app/components/restore-job-management/restore-job-management.component.ts | Removed restore job management component |
| polardbx-ui/src/app/components/logs-query/logs-query.component.ts | Removed logs query component |
| polardbx-ui/src/app/components/cluster-creation-wizard/*.ts | Removed cluster creation wizard |
| backend/pkg/k8s/client.go | Removed K8s client wrapper functions |
| backend/pkg/config/config.go | Removed image registry configuration |
| backend/pkg/api/*/endpoints.go | Removed various API endpoint handlers |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
主要变更
dashboard/backend,前端在 tools/dashboard/frontend),新增统一 tools/dashboard/Dockerfile、tools/dashboard/deploy-all-in-one.sh、Helm 示例 Chart tools/dashboard/helm-example,新增对应文档描述。