<#7227 [BUG] Construct k8s pod in connector/agent ...
# flyte-github
a
#7227 [BUG] Construct k8s pod in connector/agent plugin Issue created by madiyar-wayve Flyte & Flytekit version Flyte v1.16.5 Flytekit v1.16.17 Describe the bug Flyte connector plugin doesn't build k8s pod spec and doesn't render arguments, when task template passed has
k8s pod
type instead of
container
. For tasks with
container
type connector plugin renders the arguments properly at the moment: https://github.com/flyteorg/flyte/blob/v1.16.5/flyteplugins/go/tasks/plugins/webapi/connector/plugin.go#L111-L128 Expected behavior Flyte connector plugin should construct k8s pod spec and render command arguments. Additional context to reproduce Can reproduce when creating task with connector task_config and pod_template set:
Copy code
@task(
   task_config=SomeConnectorConfig(...),
   pod_template=PodTemplate(...),
)
Flyte connector (built on
AsyncConnectorBase
class) will receive pod_template (unmerged with default-pod-template) with no arguments rendered. Screenshots No response Are you sure this issue hasn't been raised already? • Yes Have you read the Code of Conduct? • Yes flyteorg/flyte