This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 202
Support for binary files in fmp-configmap-file #1718
Comments
@erikgb : Yeah, would really appreciate if you could create a PR. We're going to cut a release soon |
@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.... |
We are planning to release tomorrow if tests are green 😄 |
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
Cool! Thanks! Looking forward to it. Will test it with my blocking issues first..... |
Np, Thanks for your quick fix! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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?
The text was updated successfully, but these errors were encountered: