WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@LorenzoTettamanti
Copy link
Member

@LorenzoTettamanti LorenzoTettamanti commented Nov 3, 2025

Changes

This PR introduces a heavy CLI code refactoring. Code refactoring aim:

  • Remove deprecated crates (serde_yaml)
  • Dependency updates
  • Improved error handling: Introduced the CliError enum to group all the errors
  • Removed duplicated functions
  • Added documentation for every function

The CLI crate is now ready for improvements

Tests

Testing environments:

  • Minikube
  • Kind

Command tested:

  • Install
  • Uninstall
  • Service
  • Status

Testing scenarios:

  • Tested in optimal conditions
  • Tested in non-optimal conditions: Simulated a cluster failure to trigger a ClientError, UninstallError and InstallationError
  • Tested in non-optimal conditions: Simulated a network failure to trigger a InstallerError

LorenzoTettamanti added 2 commits November 4, 2025 14:33
…, Added functions detailed documentation, removed duplicated functions. Added connect_to_client aux function to connect to kubernetes client
@LorenzoTettamanti LorenzoTettamanti self-assigned this Nov 4, 2025
LorenzoTettamanti and others added 11 commits November 4, 2025 21:08
…ule, moved connect_to_client function to essential.rs. Code refactoring of logs.r: added docs, improved error handling
… handling, Added documentation to every function
…ntroduced InstallationError enum to group all the errors
…etter error handling, removed duplicated functions
…on to every function, better error handling
…um to group all the error types. implemented From trait for ClientError to convert kube::Error erros in ClientError's type
…nused imports. Fixed typos in return types
…ntError type and MonitoringError types. Added From trait implermentation to convert anyhow::Error into CliError. Cargo.lock update
@LorenzoTettamanti LorenzoTettamanti marked this pull request as ready for review November 7, 2025 21:31
@siddh34
Copy link
Collaborator

siddh34 commented Nov 8, 2025

Testing it out @LorenzoTettamanti mate!

image image image image image image image image

Things are working great 🚀🚀

@LorenzoTettamanti
Copy link
Member Author

Thanks mate, merging the changes right now 🚀

@LorenzoTettamanti LorenzoTettamanti merged commit 5e8354a into CortexFlow:feature/ebpf-core Nov 8, 2025
3 checks passed
@LorenzoTettamanti LorenzoTettamanti moved this from In Progress to Done in CortexFlow v0.1 Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code refactoring Code refactoring cortexflow cli CLI related issues

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants