Skip to content
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

Initial implementation of skupper diagnose #1803

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from

Conversation

skitt
Copy link
Contributor

@skitt skitt commented Nov 26, 2024

This introduces a framework for diagnostics commands, with an initial implementation of two Kubernetes checks (verifying that the Kubernetes API is accessible, and that the Kubernetes version is supported).

The framework supports simple declaration of Cobra commands constructed from individual diagnostics, and dependencies between diagnostics.

The kind spinner is copied with some adaptations borrowed from the Submariner project.

@ssorj
Copy link
Member

ssorj commented Dec 10, 2024

Hi, Stephen. We are using "skupper debug" as the place to collect all debugging and troubleshooting operations. I think this operation should live there as well. Based on what it's doing, I propose "skupper debug check" as the command name.

I also see that the top level "diagnose" requires a "--kube" to run all the checks. I think it should instead use the current platform (determined by --platform or SKUPPER_PLATFORM), and thus run all the checks without the extra arg.

As a naming thing, I propose using kube instead of k8s for the short form, since we are already using kube in other places.

@skitt skitt force-pushed the diagnose-v2 branch 3 times, most recently from bee49ee to 69dd3ca Compare December 18, 2024 17:01
This introduces a framework for diagnostics commands, with an initial
implementation of two Kubernetes checks (verifying that the Kubernetes
API is accessible, and that the Kubernetes version is supported).

The framework supports simple declaration of Cobra commands
constructed from individual diagnostics, and dependencies between
diagnostics.

The kind spinner is copied with some adaptations borrowed from the
Submariner project.

Signed-off-by: Stephen Kitt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants