odigos: Odigos uninstall output is not helpful when odigos in not installed
When running the odigos cli odigos uninstall, there can be 2 options.
- odigos is install, in which case the following output is printed to console which is good
➜ cli git:(odigos-deployment) odigos uninstall
About to uninstall Odigos from namespace odigos-system
Are you sure? [Y/n]: Y
Uninstalling Odigos Deployments ✔
Uninstalling Odigos DaemonSets ✔
Uninstalling Odigos ConfigMaps ✔
Uninstalling Odigos CRDs ✔
Uninstalling Odigos RBAC ✔
Uninstalling Odigos Secrets ✔
Uninstalling Namespace odigos-system ✔
Waiting for namespace to be deleted ✔
Rolling back odigos changes to pods
Rolling back odigos changes to namespaces
✔
SUCCESS: Odigos uninstalled.
- If Odigos is not installed to begin with, the output is not very helpful:
➜ cli git:(odigos-deployment) odigos uninstall
About to uninstall Odigos from namespace odigos-system
Are you sure? [Y/n]: Y
Uninstalling Odigos Deployments ✔
Uninstalling Odigos DaemonSets ✔
Uninstalling Odigos ConfigMaps ✔
Uninstalling Odigos CRDs ✔
Uninstalling Odigos RBAC ✔
Uninstalling Odigos Secrets ✔
Uninstalling Namespace odigos-system X
ERROR namespaces "odigos-system" not found
I think it is more useful to print something like “Odigos is not installed in the cluster” if the namespace is not found.
To check your fix, you can set up an odigos environment with Quickstart. Then, make necessary changes in the cli module code, and run in terminal:
➜ odigos git:(main) cd cli
➜ cli git:(main) go run . uninstall
To run the cli uninstall command locally from code and verify your fix.
Thanks!
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (11 by maintainers)
SOLVED!! Just needed to update the go lang version
Yes I am using v0.1.75. Thanks for the help @HeetVekariya