<#2255 [Core feature] [flytekit] Pod and container...
# flytekit
a
#2255 [Core feature] [flytekit] Pod and container should be interchangeable Issue created by kumare3 Motivation: Why do you think this is important? Flyte language specification allows interchanging the use of
Pod | Container
, but flytekit, allows using pod as a special task type. To achieve this the user has to install flytekitplugins-pod. A preferred way would be to allow swapping out container vs pod for all containerized task executions. Let us consider the following example
Copy code
@task(task_config=MyConfig(....))
def tk():
   ....
It should be possible to pass in the podconfig as follows
Copy code
@task(task_config=MyConfig(...), pod=PodConfig())
def tk():
 ....
It is also ok to need flytekitplugins-pod to be installed to actually handle the right type Goal: What should the final outcome look like, ideally? The experience is detailed above. The reason to do this is so that in complicated cases, where users want to control the pod attributes, it should be trivial and possible Describe alternatives you've considered this is not easily possible. This has been implemented for ShellTasks as an example Propose: Link/Inline OR Additional context NA Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte