Cristian Fuentes
08/17/2023, 8:33 PMfirst_op = k8s_job_op.configured(
{
"image": "busybox",
"command": ["/bin/sh", "-c"],
"args": ["echo <PARAMETER_FROM_OUTSIDE>"],
},
name="first_op",
)
Daniel Kilcoyne
08/17/2023, 8:53 PMexecute_k8s_job
supports env_vars which could be helpfulCristian Fuentes
08/17/2023, 8:55 PM@op
def print_greeting(config: MyOpConfig):
But when using k8s_job_op not sure how to provide "config".alex
08/18/2023, 4:14 PMk8s_job_op
here
https://github.com/dagster-io/dagster/blob/master/python_modules/libraries/dagster-k8s/dagster_k8s/ops/k8s_job_op.py#L368-L394
is a very thin wrapper around execute_k8s_job
as Daniel alluded to above. Writing your own op
that uses execute_k8s_job
directly and allow you to define your own config should give you the flexibility you need to accomplish what you are tryingCristian Fuentes
08/18/2023, 4:17 PM