Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Support for binary files in fmp-configmap-file #1718

Closed
erikgb opened this issue Oct 3, 2019 · 7 comments
Closed

Support for binary files in fmp-configmap-file #1718

erikgb opened this issue Oct 3, 2019 · 7 comments

Comments

@erikgb
Copy link
Contributor

erikgb commented Oct 3, 2019

ConfigMapEnricher (fmp-configmap-file) was a very nice addition to f-m-p, and we are using it already.

But when I try to use it for files with binary content, i.e. a Java truststore or a (binary) license file, this does not work.

In order to make ConfigMapEnricher work for binary data, the ConfigMapEnricher has to store the file contents in the binaryData field - instead of the standard data field. And this should ideally be done transparently - with the same logic as oc/kubectl uses when creating ConfigMaps with the '--from-file' option: non-UTF8 data should use the binaryData field, otherwise use the data field (as now).

I had a look at the source code, and I think this can be fixed without too much effort. I could prepare a PR?

@rohanKanojia
Copy link
Member

@erikgb : Yeah, would really appreciate if you could create a PR. We're going to cut a release soon

@erikgb
Copy link
Contributor Author

erikgb commented Oct 3, 2019

@rohanKanojia : Good, I will prepare a PR over the weekend.

Personally I am more keen on having the new release, that will fix some of my blocking issues, as soon as possible. So please do not postpone the release waiting for this new feature....

@rohanKanojia
Copy link
Member

We are planning to release tomorrow if tests are green 😄

@rohanKanojia
Copy link
Member

rohanKanojia commented Oct 3, 2019

No worries, Users are our topmost priority; we can release early if it's super urgent for you.

erikgb added a commit to erikgb/fabric8-maven-plugin that referenced this issue Oct 4, 2019
erikgb added a commit to erikgb/fabric8-maven-plugin that referenced this issue Oct 4, 2019
@rohanKanojia
Copy link
Member

@erikgb : I've release 4.3.0, You can try it out and provide feedback.

@erikgb
Copy link
Contributor Author

erikgb commented Oct 4, 2019

Cool! Thanks! Looking forward to it. Will test it with my blocking issues first.....

@rohanKanojia
Copy link
Member

Np, Thanks for your quick fix!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants