configmapGenerator fails to include files containing valid UTF-8 with control characters #5148
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What happened?
Trying to include a valid UTF-8 file containing a control character (eg. \u0093) in a config map results in an error during
kustomize build
.What did you expect to happen?
A config map containing the file data with the control character correctly escaped or represented using
binaryData
.How can we reproduce it (as minimally and precisely as possible)?
Expected output
No response
Actual output
Kustomize version
v5.0.1
Operating system
Linux
The text was updated successfully, but these errors were encountered: