some-grass-84903
03/03/2023, 12:11 PMsome-grass-84903
03/03/2023, 12:27 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?some-grass-84903
03/03/2023, 12:43 PMfrom 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()
quaint-diamond-37493
03/03/2023, 12:51 PMquaint-diamond-37493
03/03/2023, 12:53 PMhallowed-mouse-14616
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.some-grass-84903
03/03/2023, 2:15 PMfreezing-airport-6809