You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/03/24 15:29:06 UTC

[GitHub] [camel-k] orpiske opened a new issue #2168: Uninstall is leaving items behind

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:
users@infra.apache.org



[GitHub] [camel-k] orpiske commented on issue #2168: Uninstall is leaving items behind

Posted by GitBox <gi...@apache.org>.
orpiske commented on issue #2168:
URL: https://github.com/apache/camel-k/issues/2168#issuecomment-826835439


   @astefanutti thanks! I will give it a try later this week :) 


-- 
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:
users@infra.apache.org



[GitHub] [camel-k] orpiske commented on issue #2168: Uninstall is leaving items behind

Posted by GitBox <gi...@apache.org>.
orpiske commented on issue #2168:
URL: https://github.com/apache/camel-k/issues/2168#issuecomment-828395574


   > @orpiske it may be that you have to add the `--olm=false` option, e.g. `kamel uninstall --all --global --olm=false`, otherwise it defaults to using OLM, which does not delete CRDs when uninstalling an operator.
   
   Just wanted to provide a feedback that it did remove the items I mentioned after I used what you suggested. Thanks @astefanutti! 


-- 
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:
users@infra.apache.org



[GitHub] [camel-k] astefanutti commented on issue #2168: Uninstall is leaving items behind

Posted by GitBox <gi...@apache.org>.
astefanutti commented on issue #2168:
URL: https://github.com/apache/camel-k/issues/2168#issuecomment-826833972


   @orpiske it may be that you have to add the `--olm=false` option, e.g. `kamel uninstall --all --global --olm=false`, otherwise it defaults to using OLM, which does not delete CRDs when uninstalling an operator.


-- 
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:
users@infra.apache.org



[GitHub] [camel-k] astefanutti closed issue #2168: Uninstall is leaving items behind

Posted by GitBox <gi...@apache.org>.
astefanutti closed issue #2168:
URL: https://github.com/apache/camel-k/issues/2168


   


-- 
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:
users@infra.apache.org



[GitHub] [camel-k] orpiske commented on issue #2168: Uninstall is leaving items behind

Posted by GitBox <gi...@apache.org>.
orpiske commented on issue #2168:
URL: https://github.com/apache/camel-k/issues/2168#issuecomment-825460454


   @astefanutti I am not sure if we should have closed this one. I was looking at my cluster and the uninstall is still leaving things behind: 
   
   ```
   	kubectl delete crd integrationkits.camel.apache.org
   	kubectl delete crd integrationplatforms.camel.apache.org
   	kubectl delete crd integrations.camel.apache.org
   	kubectl delete crd camelcatalogs.camel.apache.org
   ```


-- 
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:
users@infra.apache.org