Open barnabasbusa opened 6 months ago
Some more context - Barnabas wants to create files artifacts from Starlark objects; something like
plan.create_artifact(
contents = str or list of string,
target = "filename.txt",
name = "barnabas-artifact",
delimiter = "\n", optional value that applies to strings
)
if its a string it can be written out to target which will be at root of barnabas-artifact; if its a list of strings it can be concatenated with "\n" by default or allow the person to give the delimiter
Any update on this? I think it would be extremely valuable to be able to do this for the package configuration file that you are using. The service context is very limited in terms of getting complete service information. I'm running into some roadblocks that could be alleviated if I had access to the StarlarkRunConfig file used to start the remote packages.
Background & motivation
Currently upload files is limited to files. https://docs.kurtosis.com/api-reference/starlark-reference/plan/#upload_files
It would be great if you had a python object, like a python array, dict, it could be directly referenced and uploaded as a files artifact as well.
Desired behaviour
How important is this to you?
Painful; the lack of this feature makes using Kurtosis frictionful.
What area of the product does this pertain to?
CLI: the Command Line Interface