feat(cli): Added Slice Health Status Functionality#96
Open
AyushSriv06 wants to merge 1 commit intokubeslice:masterfrom
Open
feat(cli): Added Slice Health Status Functionality#96AyushSriv06 wants to merge 1 commit intokubeslice:masterfrom
AyushSriv06 wants to merge 1 commit intokubeslice:masterfrom
Conversation
Signed-off-by: Ayush Srivastava <ayushsrisks@gmail.com>
|
@gourishkb @bharath-avesha please review |
Collaborator
|
Hey @AyushSriv06 can you please attach the command output screenshot ? |
gourishkb
reviewed
Aug 26, 2025
| ) | ||
|
|
||
| var showHealthCmd = &cobra.Command{ | ||
| Use: "show-health", |
Collaborator
There was a problem hiding this comment.
There is another PR open for cluster health status, can you make this more specific with something like "show-slice-health" ?
gourishkb
reviewed
Aug 26, 2025
| var showHealthCmd = &cobra.Command{ | ||
| Use: "show-health", | ||
| Aliases: []string{"health"}, | ||
| Short: "Show health status of KubeSlice resources.", |
Collaborator
There was a problem hiding this comment.
"Show health status of Slice Resources"
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.
fix #66
Add show-health command to kubeslice-cli
Summary
Implements
kubeslice-cli show-health slice <SLICE-NAME>command to display KubeSlice slice health status.Changes
cmd/show-health.go- Main command implementation with Cobrapkg/slice.go- AddedShowSliceHealth()andShowAllSliceHealth()functionspkg/internal/slice-config.go- Added JSON parsing and health status displaydoc/kubeslice-cli_show-health.md- Complete documentationREADME.md- Added new command to available commands listTesting
Tested on GKE cluster with KubeSlice 1.4.0 - Command successfully connects to cluster, parses JSON output, and displays health status. All error handling scenarios tested and working correctly.
Usage