feat(server): enhance server setup with new job and server commands#1
Closed
jinronga wants to merge 9 commits intoaide-family:mainfrom
Closed
feat(server): enhance server setup with new job and server commands#1jinronga wants to merge 9 commits intoaide-family:mainfrom
jinronga wants to merge 9 commits intoaide-family:mainfrom
Conversation
aide-cloud
reviewed
Nov 26, 2025
Contributor
aide-cloud
left a comment
There was a problem hiding this comment.
- job http grpc拆成独立的命令
- run命令改为server命令
- server命令包含job http grpc合集, 可以通过配置/命令行参数选择性开启
This commit introduces new commands for job processing and server management in the main application. The `job` command is added to facilitate job-related operations, while the `server` command is included to manage server functionalities. Additionally, the server initialization logic is updated to support these new commands, improving the overall command structure and functionality of the application.
…template, and webhook - Add file-based configuration loading logic for email, namespace, template, and webhook resources - Implement in-memory storage using safety.SyncMap for configurations - Introduce useDatabase flag to switch between database and file config modes - Update biz layer to read from file config when database is disabled - Adjust .gitignore to exclude datasource directory but keep description.txt - Add sample YAML files for email, namespace, template, and webhook configurations
Added watch mechanisms for namespaces, webhooks, emails, and templates configurations. When these configs change, corresponding reload functions are triggered to update the application state dynamically. Also updated default names in yaml data files and added new entries for email, namespace, template, and webhook configurations. Sorting logic was added to ensure consistent ordering of items by UID in biz layers.
- Refactor flag parsing to support default config bytes input - Add comprehensive CLI flag bindings for server, JWT, database, registry, Kubernetes, and other configurations - Improve configuration loading logic with better error handling - Introduce bytes source for in-memory config loading - Update Dockerfile CMD to include custom config and output paths - Modify cluster endpoint validation in client config generation - Remove unused GlobalEmail field from Bootstrap proto message - Add helper methods for RegistryType enum checks - Adjust default values in server.yaml for cluster settings
- Change default rabbit config path from `~/.rabbit` to `./.rabbit/` - Update Dockerfile to use absolute paths for volume mounts and CMD arguments - Enhance CLI command help texts with detailed descriptions and usage scenarios - Refactor config loading logic in send commands to use kratos config sources - Improve path normalization in client config generation - Remove obsolete config fields and consolidate configuration handling - Add metadata fields to server config including repository, author and email - Update dependencies and clean up unused imports and code sections
- Remove non-root user creation and switch to ENTRYPOINT with CMD - Update binary copy path and expose ports in single line - Set executable permissions for rabbit binary - Create /moon/datasource directory feat(makefile): update stringer dependency version - Replace github.com/moon-monitor/stringer with github.com/aide-family/stringer@v1.1.3 feat(cmd): modify config-paths flag to support string input - Change --config-paths from StringSliceVar to StringVar - Support comma-separated paths as input refactor(cmd): simplify config loading logic - Use conf.Load directly instead of separate Load and Scan steps - Reduce code redundancy in configuration parsing docs(deploy): add docker-compose usage guide and configuration files - Add README-docker-compose.md with detailed instructions - Include docker-compose.yml with environment variables and health check docs(deploy): add Kubernetes deployment configurations - Add namespace, configmap, secret example, serviceaccount, rbac, deployment, service, ingress, kustomization, and scripts for deploying to Kubernetes - Include deploy.sh and undeploy.sh for easy management - Add .gitignore for sensitive files feat(go.mod): upgrade magicbox version and remove local replace - Upgrade github.com/aide-family/magicbox from v0.0.3 to v0.0.4 - Remove replace directive pointing to local path
- Add ServerOptions to parse enableHttp/enableGrpc/enableJob from config or CLI - Refactor RegisterService to conditionally register components based on options - Update server command flags to support --http/--grpc/--job switches - Modify dependency injection to use unified ProviderSetServer with conditional logic - Add validation to ensure at least one server component is enabled - Update configuration proto and YAML with new enable flags - Improve HTTP server discovery in Servers slice with dedicated httpServer() method - Set default component activation: HTTP/gRPC enabled, Job disabled in server mode - Enable all components by default in run mode for backward compatibility - Add environment variable support for component activation control
- Introduce independent http and grpc commands for single-protocol instances - Remove legacy run command in favor of flexible server component selection - Update server command to support selective component activation (--http/--grpc/--job) - Add dedicated wire.go files for http and grpc command dependency injection - Modify architecture documentation to reflect new startup patterns - Adjust main.go to register new http and grpc subcommands - Implement flag parsing specific to http-only and grpc-only modes - Preserve backward compatibility through server command with combined components - Update migration guide for existing run command users - Enhance documentation with new deployment examples and best practices
- Delete the run command implementation, including client configuration generation and flag handling - Update architecture documentation to reflect the removal of the run command - Transition to using the new server command for starting services with flexible component selection - Ensure backward compatibility by guiding users to the new command structure
3f4c81c to
04c55fe
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit introduces new commands for job processing and server management in the main application. The
jobcommand is added to facilitate job-related operations, while theservercommand is included to manage server functionalities. Additionally, the server initialization logic is updated to support these new commands, improving the overall command structure and functionality of the application.