You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I propose adding the binary_data field to kubernetes_config_map_v1_data to match the behavior of kubernetes_config_map.
Unlike kubernetes_config_map, the kubernetes_config_map_v1_data does not have a way to the b64 encoded binary_data directly. This is an issue when trying to add certain types of files such as PNGs to confgmaps as terraform file cannot be used without producing the following error:
│ Call to function "file" failed: contents of "./vault.png" are not valid
│ UTF-8; use the filebase64 function to obtain the Base64 encoded contents or
│ the other file functions (e.g. filemd5, filesha256) to obtain file hashing
│ results instead.
Reading the file via filebase64 and then attempting to decode does not work either.
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
The text was updated successfully, but these errors were encountered:
fullykubed
changed the title
Allow inputting binary_data encoded data with kubernetes_config_map_v1_data
Allow inputting b64 encoded data with kubernetes_config_map_v1_data via binary_data
Apr 13, 2024
Description
I propose adding the
binary_data
field tokubernetes_config_map_v1_data
to match the behavior ofkubernetes_config_map
.Unlike
kubernetes_config_map
, thekubernetes_config_map_v1_data
does not have a way to the b64 encodedbinary_data
directly. This is an issue when trying to add certain types of files such as PNGs to confgmaps as terraformfile
cannot be used without producing the following error:Reading the file via
filebase64
and then attempting to decode does not work either.Community Note
The text was updated successfully, but these errors were encountered: