You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "fhossfel (via GitHub)" <gi...@apache.org> on 2023/05/30 13:41:39 UTC

[GitHub] [camel-k] fhossfel opened a new issue, #4426: Using an XSLT as a local dependency results in "unknown decency error"

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

   I am trying to include an XSLT into the image build by Camel-K using the following mode-line:
   
   // camel-k: dependency=file:common_json2xml.xslt:/etc/camel/resources/common_json2xml.xslt
   
   This results in an error:
   
       {"level":"error","ts":1685453328.590157,"logger":"camel-k.controller.build","msg":"Build kit-chqvjflec46c73dffthg failed: unknown dependency type: file:common_json2xml.xslt:/etc/camel/resources/common_json2xml.xslt","request-namespace":"camel-k","request-name":"kit-chqvjflec46c73dffthg","api-version":"camel.apache.org/v1","kind":"Build","ns":"camel-k","name":"kit-chqvjflec46c73dffthg","stacktrace":"github.com/apache/camel-k/pkg/controller/build.(*monitorRoutineAction).updateBuildStatus\n\tgithub.com/apache/camel-k/pkg/controller/build/monitor_routine.go:197\ngithub.com/apache/camel-k/pkg/controller/build.(*monitorRoutineAction).runBuild\n\tgithub.com/apache/camel-k/pkg/controller/build/monitor_routine.go:181"}
       
   The documentation state that:
   
   > You can also specify data files to be mounted in the running container:
   >
   > kamel run -d file://path/to/data.csv:path/in/container/data.csv Integration.java
   >
   > Specifying a directory with also work recursively.
   
   I assumed that an XSLT falls under the description of a "data file." Is this a bug or is the documentation just unclear?


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


[GitHub] [camel-k] johnpoth commented on issue #4426: Using an XSLT as a local dependency results in "unknown decency error"

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

   @fhossfel Yeah we [moved](https://github.com/apache/camel-k/commit/d545b70be9b7483716bf10c16fad3e05e9c09df7) to URI syntax so it should be:
   
   ```
   kamel -n camel-k run test_error.groovy --dependency=file://common_json2xml.xslt?targetPath=/etc/camel/resources/common_json2xml.xslt
   ```
   
   Looks like we need to update the docs on the website sorry about that ( the info in the CLI seems ok ...).
   
   


-- 
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] fhossfel commented on issue #4426: Using an XSLT as a local dependency results in "unknown decency error"

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

   Using `file://` instead of `file:` results in an even more interesting error:
   
       Error: IntegrationPlatform.camel.apache.org "camel-k" not found


-- 
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] fhossfel commented on issue #4426: Using an XSLT as a local dependency results in "unknown decency error"

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

   Camel K ist installed in the camel-k namespace but I am working in the dev ns.
   
       ~ % kubectl -n dev get ip
       No resources found in staging namespace.
        ~ % kubectl -n camel-k get ip
       NAME      PHASE
       camel-k   Ready
       ~ % 
       
   If Itry to run the integration in the camel-k namespace I get the following error:
   
       ~ % kamel -n camel-k run test_error.groovy --dependency=file://common_json2xml.xslt:/etc/camel/resources/common_json2xml.xslt
       Error: Error trying to upload file://common_json2xml.xslt:/etc/camel/resources/common_json2xml.xslt to the Image Registry.: stat common_json2xml.xslt:/etc/camel/resources/common_json2xml.xslt: no such file or directory
   


-- 
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] fhossfel commented on issue #4426: Using an XSLT as a local dependency results in "unknown decency error"

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

   Sorry, for the late reply. I was on holiday.
   
   @johnpoth: This works. I have created a new Integration Platform basically by running `kubectl get ip -o yaml | kubectl apply`. (Using kamel install did not work because I would have to respecify the Docker repo settings.)
   
   Ist here any reason thy this does not work with a global operator? TBH this is a bit surprising TBH.
   


-- 
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] squakez commented on issue #4426: Using an XSLT as a local dependency results in "unknown decency error"

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

   Okey, I guess it's a global operator. Then you need to create an IntegrationPlatform in those namespaces where you want to run the integration as well:
   ```
   kamel install --skip-operator-setup -n my-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] johnpoth commented on issue #4426: Using an XSLT as a local dependency results in "unknown dependency error"

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

   Hi @fhossfel , glad it works!
   
   It should work with a global operator; are you getting a specific error ? 
   
   Not sure about the way you are installing the Integration Platform, @squakez is this the correct way ?
   
   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


[GitHub] [camel-k] squakez commented on issue #4426: Using an XSLT as a local dependency results in "unknown decency error"

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

   That's because there is not an IntegrationPlatform called `camel-k` (which is the default one). Can you please provide the output of `kubectl get ip` in the namespace where you're working?


-- 
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] Using an XSLT as a local dependency results in "unknown dependency error" [camel-k]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #4426: Using an XSLT as a local dependency results in "unknown dependency error"
URL: https://github.com/apache/camel-k/issues/4426


-- 
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] squakez commented on issue #4426: Using an XSLT as a local dependency results in "unknown dependency error"

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

   There is no unique way of installing the IntegrationPlatform. If you decide to install it manually, then, it's good as well. We simplify this operation via `kamel install --skip-operator-setup -n my-namespace` and the user can provide all details such as container registry etc as it happens in a classic installation.


-- 
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] squakez commented on issue #4426: Using an XSLT as a local dependency results in "unknown decency error"

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

   What version of Camel K are you using? the feature [1] is only available in non Openshift environment IIRC. There is also an issue #4398 that I vaguely remember was about something similar.
   
   [1] https://camel.apache.org/camel-k/1.12.x/configuration/dependencies.html#dependencies-kind


-- 
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] johnpoth commented on issue #4426: Using an XSLT as a local dependency results in "unknown decency error"

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

   Hi @fhossfel ,
   
   The prefix is `file://` so it should be 
   
   ```
   // camel-k: dependency=file://common_json2xml.xslt:/etc/camel/resources/common_json2xml.xslt
   ```
   
   Let us know if that works for you ...
   
   @squakez it seems that #4398 works in the end (given the last comment)


-- 
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] Using an XSLT as a local dependency results in "unknown dependency error" [camel-k]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #4426:
URL: https://github.com/apache/camel-k/issues/4426#issuecomment-1749821881

   This issue has been automatically marked as stale due to 90 days of inactivity.
   It will be closed if no further activity occurs within 15 days.
   If you think that’s incorrect or the issue should never stale, please simply write any comment.
   Thanks for your contributions!


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