Broder Peters
03/03/2023, 12:11 PMpyflyte-fast-execute
stuff, meaning that if I would want to run a non-python related shelltask, it's just not possible right now, right?from flytekit import task, workflow
from flytekitplugins.pod import Pod
from kubernetes.client.models import (
V1Container,
V1PodSpec,
)
@task(
task_config=Pod(
pod_spec=V1PodSpec(
containers=[
V1Container(
name="kaniko",
image="<http://gcr.io/kaniko-project/executor:latest|gcr.io/kaniko-project/executor:latest>",
args=[
"--help"
]
),
]
),
)
)
def kaniko_dummy():
pass
@workflow
def wf():
kaniko_dummy()
Felix Ruess
03/03/2023, 12:51 PMDan Rammer (hamersaw)
03/03/2023, 2:12 PMShellTask(
# other args omitted
task_config=Pod(
pod_spec=V1PodSpec(
containers=[
V1Container(
name="primary",
image="<http://gcr.io/kaniko-project/executor:latest|gcr.io/kaniko-project/executor:latest>",
),
]
),
)
)
which would set the container.Broder Peters
03/03/2023, 2:15 PMKetan (kumare3)