danielhelfand / tekton-install

CLI for Installing Tekton components on a Kubernetes cluster
Apache License 2.0
1 stars 0 forks source link

Better Error for When Component is not Found from tekton-install uninstall all #9

Closed danielhelfand closed 4 years ago

danielhelfand commented 4 years ago

When deleting all components from a Kubernetes cluster, if some components are not installed, the following error is displayed:

# Nothing installed
tekton-install uninstall all
Error from server (NotFound): namespaces "tekton-pipelines" not found

# Some components installed

tekton-install uninstall all
Error from server (NotFound): deployments.apps "tekton-triggers-controller" not found
Component dashboard has been uninstalled successfully
Component pipeline has been uninstalled successfully

This error comes from the getComponentVersion func. It occurs while checking for the version of a component that is not installed.

The error will not stop the uninstall process, but it is confusing and should be cleaned up to be something like the following:

Component triggers not found.