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
artifact_name=plan.upload_files(
# The file to upload into a files artifact# Must be any GitHub URL without the '/blob/main' part.# MANDATORYsrc="github.com/foo/bar/static/example.txt",
# The name to give the files artifact that will be produced.# If not specified, it will be auto-generated.# OPTIONALname="my-artifact",
# A human friendly description for the end user of the package# OPTIONAL (Default: Uploading file 'PATH' to files artifact 'ARTIFACT_NAME')description="uploading file"
)
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.
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
The text was updated successfully, but these errors were encountered: