You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "apupier (via GitHub)" <gi...@apache.org> on 2023/10/24 12:06:18 UTC

[I] Camel K 2.1 is no more supporting resources which are not config or secret [camel-k]

apupier opened a new issue, #4853:
URL: https://github.com/apache/camel-k/issues/4853

   ### What happened?
   
   While deploying with resource which are not config or secret file
   the deployment is failing
   with error:
   `Error: could not match config or secret configuration as file:/home/apupier/ws/single-file-without-extension-workspace/demo.camel.xml`
   
   The documentation is stating: `The runtime resources are expected to be any resource type (text or binary content).` https://camel.apache.org/camel-k/2.0.x/configuration/runtime-resources.html
   
   
   ### Steps to reproduce
   
   1. Create a Camel K integration file
   2. Create a random file (which is not a config or secret file) like an xml file
   3. try to deploy the integration with a command like: kamel run Demo.java --resource=file:/path/to/the/file.xml
   
   ### Relevant log output
   
   ```shell
   `Error: could not match config or secret configuration as file:/home/apupier/ws/single-file-without-extension-workspace/demo.camel.xml`
   ```
   
   
   ### Camel K version
   
   2.1.0


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

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


Re: [I] Camel K 2.1 is no more supporting resources which are not config or secret [camel-k]

Posted by "apupier (via GitHub)" <gi...@apache.org>.
apupier commented on issue #4853:
URL: https://github.com/apache/camel-k/issues/4853#issuecomment-1777152418

   I think the documentation needs a major update as it is still mentioning that the "most familiar way is to handle local file".
   


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


Re: [I] Camel K 2.1 documentation still contains information on using local files for runtime resources despite it is no more supported [camel-k]

Posted by "gansheer (via GitHub)" <gi...@apache.org>.
gansheer commented on issue #4853:
URL: https://github.com/apache/camel-k/issues/4853#issuecomment-1779333044

   @squakez I will fix the doc.


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


Re: [I] Camel K 2.1 documentation still contains information on using local files for runtime resources despite it is no more supported [camel-k]

Posted by "MotaOcimar (via GitHub)" <gi...@apache.org>.
MotaOcimar commented on issue #4853:
URL: https://github.com/apache/camel-k/issues/4853#issuecomment-1825778891

   Oh man. My routes use some json and velocity (.vm) files to format responses. What would be the easiest way for my Camel-K routes to reference these files?


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


Re: [I] Camel K 2.1 is no more supporting resources which are not config or secret [camel-k]

Posted by "gansheer (via GitHub)" <gi...@apache.org>.
gansheer commented on issue #4853:
URL: https://github.com/apache/camel-k/issues/4853#issuecomment-1777111613

   Hi,
   
   The change has been made in Camel K 2.0 when deprecated kamel command have been removed : [CAMEL K 2.0](https://camel.apache.org/blog/2023/07/camel-k-2-0/). I you want to provide a file you need to store it in a Configmap or Secret. This is why you no longer see any reference to "file:xxxx" in the documentation you are looking at.
   


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


Re: [I] Camel K 2.1 documentation still contains information on using local files for runtime resources despite it is no more supported [camel-k]

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez closed issue #4853: Camel K 2.1 documentation still contains information on using local files for runtime resources despite it is no more supported
URL: https://github.com/apache/camel-k/issues/4853


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


Re: [I] Camel K 2.1 documentation still contains information on using local files for runtime resources despite it is no more supported [camel-k]

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4853:
URL: https://github.com/apache/camel-k/issues/4853#issuecomment-1825782946

   > Oh man. My routes use some json and velocity (.vm) files to format responses. What would be the easiest way for my Camel-K routes to reference these files?
   
   Not sure to understand how this comment relates to this specific issue. Would you mind opening a separate issue with all the details about your request? thanks.


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