feat: add gorse-cli for cluster management#1248
Open
zhangzhenghao wants to merge 1 commit intogorse-io:masterfrom
Open
feat: add gorse-cli for cluster management#1248zhangzhenghao wants to merge 1 commit intogorse-io:masterfrom
zhangzhenghao wants to merge 1 commit intogorse-io:masterfrom
Conversation
Add a new CLI tool for interacting with Gorse admin API, separate from gorse-bench. Commands: - get cluster: Get cluster nodes from Gorse admin API - get tasks: Get task progress from Gorse admin API - get config: Get configuration from Gorse admin API - set config: Set configuration values in Gorse admin API Environment variables: - GORSE_ADMIN_ENDPOINT: Admin API endpoint URL - GORSE_ADMIN_API_KEY: Admin API key for authentication Example usage: gorse-cli get cluster gorse-cli get tasks gorse-cli get config gorse-cli set config recommend.cache_size=1000
cdbeb7c to
eb05caa
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1248 +/- ##
==========================================
- Coverage 73.01% 73.00% -0.02%
==========================================
Files 91 91
Lines 16694 16694
==========================================
- Hits 12189 12187 -2
- Misses 3262 3263 +1
- Partials 1243 1244 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Summary
Add a new CLI tool
gorse-clifor interacting with Gorse admin API. This is separate fromgorse-benchwhich handles benchmark operations.Commands
get clusterget tasksget configset config [key=value]...Configuration
Environment variables:
GORSE_ADMIN_ENDPOINT: Admin API endpoint URLGORSE_ADMIN_API_KEY: Admin API key for authenticationOr use flags:
--endpoint: Override endpoint--api-key: Override API keyExample Usage
Related
gorse-clitogorse-bench)