[BUG] Setting service_account_name in task PodTemplate does not work #3613
Labels
backlogged
For internal use. Reserved for contributor team workflow.
bug
Something isn't working
exo
good first issue
Good for newcomers
hacktoberfest
help wanted
Extra attention is needed
Describe the bug
Creating a task with the definition:
attempts to manually set the service account of the k8s
Pod
totrainer-service
. However, the result is that Flyte overrides this variable, setting the service account to 'default' (by default).This seems to be because the
PodPlugin
always overrides theServiceAccount
in this logic. However, previous implementation first checked if theServiceAccount
was empty first. The latter seems to be the correct implementation.Expected behavior
Users should be able to override the k8s
Pod
service account using thePodTemplate
.Additional context to reproduce
Create a task with a service account, run it, and note the manually set service account is overridden.
Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: