Hi - I have question on how
PodTemplates
interact with other arguments specified in the
@task
definition.
For example, I have a pod template specified as follows:
CL_POD_TEMPLATE = PodTemplate(
primary_container_name="classifylink", labels={"project": "classifylink"}
)
Notice that this
PodTemplate
does not specify an
image
.
I also have a task
@task(
pod_template=CL_POD_TEMPLATE,
requests=Resources(cpu="1", mem="5Gi"),
container_image=CONTAINER_IMAGE_CLASS_LINK,
)...
When i register the task - I notice that the image that my task is using is set to the default image. However, if I comment out the pod_template and re-register, I notice that the image changes to what is defined by
CONTAINER_IMAGE_CLASS_LINK
.
My question: Is this intended? I am under the impression that arguments in the task (e.g
container_image
) override or at least augment what is specified in the
PodTemplate
. But I am seeing that is not the case.