Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No possibility to disable compression while executing kamel run #2227

Closed
NickEm opened this issue Apr 16, 2021 · 5 comments
Closed

No possibility to disable compression while executing kamel run #2227

NickEm opened this issue Apr 16, 2021 · 5 comments

Comments

@NickEm
Copy link

NickEm commented Apr 16, 2021

Hi team,
We would like to generate our camel integrations using kamel utility but we see no way of disabling compression of the resources. No matter what you are running:

kamel -n camel-k run Route.java --resource key-file.p12 -o yaml
kamel -n camel-k run Route.java --compression=false --resource key-file.p12 -o yaml

As output you always get:

apiVersion: camel.apache.org/v1
kind: Integration
metadata:
  namespace: camel-k
spec:
  resources:
  - compression: true
    content:  ....
    name: key-file.p12
    type: data

Environment:

  • camel-k-1.3.2
  • Mac OS Big Sur
@NickEm NickEm changed the title No possibility to disable compression while execution kamel run No possibility to disable compression while executing kamel run Apr 16, 2021
@squakez
Copy link
Contributor

squakez commented Apr 19, 2021

I think in 1.3.2 there is a special flag for binary compression: --compress-binary. Please try with that one.

@NickEm
Copy link
Author

NickEm commented Apr 20, 2021

@squakez, but the issue is that I don't want it to be compressed at all, base64 is enough, but it still gets compressed.
I was trying to use a resource file and reference it from my application. And unfortunately, I'm just moving from one bug to another. Really, it's pretty frustrating. I experienced all the things:
#1750
#1881
apache/camel-k-runtime#593
Are there any decent working way without manually touching integration to use resource?

@squakez
Copy link
Contributor

squakez commented Apr 20, 2021

Yes, that was an issue and it's been fixed via #1965. We are releasing version 1.4.0 shortly, and it will include such fix. As soon as it's released you can upgrade and have the problem solved.

@NickEm
Copy link
Author

NickEm commented Apr 20, 2021

Glad to hear, thank you @squakez!

@squakez
Copy link
Contributor

squakez commented Aug 30, 2021

This has been fixed. Here the documentation for resource usage. Please, log a new issue if something else is failing.

@squakez squakez closed this as completed Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants