Skip to content

Named files artifact for run_sh #1581

@barnabasbusa

Description

@barnabasbusa

Background & motivation

It would be great if the output of a run_sh could be stored in a named global files artifact.

Something like this:

    genesis_validators_root = plan.run_sh(
        run="cat /data/data/custom_config_data/genesis_validators_root.txt",
        image="busybox",
        files={"/data": genesis.files_artifacts[0]},
        wait=None,    )
        artifact.name = "whatever" 
        artifact.content = genesis_validators_root.output
        return artifact

Desired behaviour

Currently the only way to get the artifact out of a run_sh instruction is by creating a new struct for it, and you will have to refer to it as a uuid instead of the artifact name.

def new_el_cl_genesis_data(
    files_artifact_uuid,
    genesis_validators_root,
):
    return struct(
        files_artifact_uuid=files_artifact_uuid,
        genesis_validators_root=genesis_validators_root,
    )

How important is this to you?

Nice to have; this feature would make using Kurtosis more enjoyable.

What area of the product does this pertain to?

CLI: the Command Line Interface

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions