mirror of
https://github.com/holos-run/holos.git
synced 2026-03-20 17:25:01 +00:00
To properly support the kubectl-slice use case the Artifact map needs to write multiple files out to the filesystem. This needs to be dynamic in the sense holos and the end user don't know what files the kubectl-slice transformer is producing. As a hack, which may actually turn out to be "good enough" this patch makes the Slice transformer behave like so: 1. Execute kubectl-slice outputting to an empty temp directory. 2. Holos saves all files in this directory into the artifact map. 3. At the end of the Artifact pipeline, if the final artifact produced ends in a /, then all keys in the artifact map having the prefix are written to the output directory. This should be sufficient for the use case, but we'll need to consider how this transformer and apporach works when subsequent transformers are used in the pipeline. I haven't thought deeply about it, but it should ideally work pretty well if the tools involved truly only care about directories and not the files within the directory.
5.0 KiB
5.0 KiB