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/11/18 07:36:32 UTC

[GitHub] [camel-k] zhiminglim opened a new issue #2756: How to remove Kamelets installation when installing IntegrationPlatform CRD?

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


   Hello,
   
   I'm working with Camel K with Helm, and instead of doing the traditional `kamel run` I'm deploying it via a helm chart, hence I have to write the CRDs.
   
   As I have to work with deploying the same integrations in multiple namespaces, I have to set up an IntegrationPlatform per namespace via a YAML file.
   
   ```yaml
   ---
   apiVersion: camel.apache.org/v1
   kind: IntegrationPlatform
   metadata:
     name: camel-k
     labels:
       {{ include "chart.labels" . | nindent 4 }}
     namespace: {{ .Release.namespace }} 
   spec:
     build:
       maven:
         settings:
           secretKeyRef:
             key: settings.xml
             name: camel-k-maven-settings
       registry:
         address: xxx.acr.io
         secret: camel-k-registry-secret
       timeout: 30m0s
   ```
   
   As I apply the above manifest into Kubernetes, the Camel K Operator also installs Kamelets into each namespace. But when i uninstall the helm chart, the Kamelets are still left in the namespace intact. Is there a way to disable the creation of Kamelets when working directly with the IntegrationPlatform CRD so that I won't have leftover Kamelets CRDs (and also CamelCatalogs) in the namespace when I no longer wish to use the IntegrationPlatform/Integrations?
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

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



[GitHub] [camel-k] zhiminglim commented on issue #2756: How to remove Kamelets installation when installing IntegrationPlatform CRD?

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


   Thank you for your reply!
   
   I have patched the camel k operator deployment env with your solution, it is working now and suppressing the kamelets installation when i create an IntegrationPlatform in other namespaces. A question on this: if I'm using Camel K 1.6.0, is this the only way to go about setting that env variable?
   
   Also, I noticed that a CamelCatalog CR is also created when I create the IntegrationPlatform via helm, and it remains in the namespace when I remove the IntegrationPlatform. Is there also a way to clean this up?
   
   The reason these questions and us not using the Kamel CLI uninstall option, is because we use Camel K CRDs within a helm chart for our integration use cases. Hence when I uninstall the helm chart, I would like the CRDs created by the camel k operator to also clean up the appropriate CRs that were created per namespace.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

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



[GitHub] [camel-k] zhiminglim closed issue #2756: How to remove Kamelets installation when installing IntegrationPlatform CRD?

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


   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

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



[GitHub] [camel-k] zhiminglim edited a comment on issue #2756: How to remove Kamelets installation when installing IntegrationPlatform CRD?

Posted by GitBox <gi...@apache.org>.
zhiminglim edited a comment on issue #2756:
URL: https://github.com/apache/camel-k/issues/2756#issuecomment-972966527


   Thank you for your reply!
   
   I have patched the camel k operator deployment env with your solution, it is working now and suppressing the kamelets installation when i create an IntegrationPlatform in other namespaces. A question on this: if I'm using Camel K 1.6.0, is this the only way to go about setting that env variable?
   
   Also, I noticed that a CamelCatalog CR is also created when I create the IntegrationPlatform via helm, and it remains in the namespace when I remove the IntegrationPlatform. Is there also a way to clean this up?
   
   The reason for these questions, and us not using the Kamel CLI uninstall option, is because we use Camel K CRDs (such as IntegrationPlatform and Integration) within a helm chart for our integration use cases. Hence when I uninstall the helm chart, I would like to clean up the Kamelets and CamelCatalog which are created as a by-product by the camel k operator.
   
   Edit: Have performed upgrade of Camel K Operator to 1.7.0, hence the question has been answered.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

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



[GitHub] [camel-k] zhiminglim edited a comment on issue #2756: How to remove Kamelets installation when installing IntegrationPlatform CRD?

Posted by GitBox <gi...@apache.org>.
zhiminglim edited a comment on issue #2756:
URL: https://github.com/apache/camel-k/issues/2756#issuecomment-972966527


   Thank you for your reply!
   
   I have patched the camel k operator deployment env with your solution, it is working now and suppressing the kamelets installation when i create an IntegrationPlatform in other namespaces. A question on this: if I'm using Camel K 1.6.0, is this the only way to go about setting that env variable?
   
   Also, I noticed that a CamelCatalog CR is also created when I create the IntegrationPlatform via helm, and it remains in the namespace when I remove the IntegrationPlatform. Is there also a way to clean this up?
   
   The reason for these questions, and us not using the Kamel CLI uninstall option, is because we use Camel K CRDs (such as IntegrationPlatform and Integration) within a helm chart for our integration use cases. Hence when I uninstall the helm chart, I would like to clean up the Kamelets and CamelCatalog which are created as a by-product by the camel k 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.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

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



[GitHub] [camel-k] tadayosi commented on issue #2756: How to remove Kamelets installation when installing IntegrationPlatform CRD?

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


   If you set `KAMEL_INSTALL_DEFAULT_KAMELETS=false` to the operator's env, Kamelets installation can be suppressed. If you are using Camel K 1.7.0 you can also do:
   ```
   kamel install --operator-env-vars=KAMEL_INSTALL_DEFAULT_KAMELETS=false
   ```


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

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



[GitHub] [camel-k] zhiminglim edited a comment on issue #2756: How to remove Kamelets installation when installing IntegrationPlatform CRD?

Posted by GitBox <gi...@apache.org>.
zhiminglim edited a comment on issue #2756:
URL: https://github.com/apache/camel-k/issues/2756#issuecomment-972966527


   Thank you for your reply!
   
   I have patched the camel k operator deployment env with your solution, it is working now and suppressing the kamelets installation when i create an IntegrationPlatform in other namespaces. A question on this: if I'm using Camel K 1.6.0, is this the only way to go about setting that env variable?
   
   Also, I noticed that a CamelCatalog CR is also created when I create the IntegrationPlatform via helm, and it remains in the namespace when I remove the IntegrationPlatform. Is there also a way to clean this up?
   
   The reason these questions and us not using the Kamel CLI uninstall option, is because we use Camel K CRDs (such as IntegrationPlatform and Integration) within a helm chart for our integration use cases. Hence when I uninstall the helm chart, I would like to clean up the Kamelets and CamelCatalog which are created as a by-product by the camel k 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.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

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