kubernetes-sigs/image-builder

Add custom files into the image

drew-viles opened this issue · 2 comments

Is your feature request related to a problem? Please describe.

A user has requested that we support adding custom files into the image builder code.
the EKS Anywhere supports this already so we should be able to replicate something similar to what they have done over there in this project.

https://anywhere.eks.amazonaws.com/docs/osmgmt/artifacts/#mounting-additional-files

Describe the solution you'd like

A way of adding additional files from a src to a dst. The user, group etc should also be configurable.


/kind feature

I have the same requirement and I'm using the following capabilities to add my extra-role that adds my files and are able to template them too.

node_custom_roles_pre
node_custom_roles_post

I'm not sure if doing like EKSA is doing would be generic enough as some times you need to template things and not only file copy into it.

So maybe include on the documentation examples on how to achieve copy of files and templating of files would cover this with more flexibility.