orpiske opened a new issue #2168:
URL: https://github.com/apache/camel-k/issues/2168


   After a lot of help from @astefanutti debugging the issues #2160 and #2136 
we identified the cause as being related to the code leaving behind items after 
uninstall. 
   
   Those issues were caused because an outdated CRD was left behind on the 
cluster even though I have been using both `kamel uninstall --all --global` and 
`kubectl delete namespace $(NAMESPACE)` to cleanup the environment. 
   
   In order to properly cleanup the cluster I also had to run:
   ```
   kubectl delete crd builds.camel.apache.org
   kubectl delete crd builds.camel.apache.org
   kubectl delete crd kamelets.camel.apache.org
   kubectl delete crd kameletbindings.camel.apache.org
   kubectl delete clusterrole camel-k:edit
   ```
   
   I think it would be good to either:
   
   1. Document the need to remove those items after uninstall or
   2. Remove them after uninstall 
   3. Overwrite them during install if they are present
   
   I believe overwriting them may be a better solution since these items may 
exist on cluster than have ran older versions of Camel K. 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to