cuddly-jelly-27016
04/27/2025, 9:12 AMlabels and annotations arg to @task decorator.
## How was this patch tested?
Added unit tests. Ran admin and propeller with changes proposed in flyteorg/flyte#6421 and made sure that labels/annotations end up on Pods and CRD objects.
• I updated the documentation accordingly.
• All new and existing tests passed. Currently fail until idl is updated.
• All commits are signed-off.
## Related PRs
flyteorg/flyte#6421
### Summary by Bito
This pull request enhances the task system and task decorator by adding Kubernetes metadata support through 'labels' and 'annotations' parameters in the task decorator. It ensures proper propagation of these parameters during task initialization and container creation, and updates the flyteidl dependency for compatibility with newer features. New unit tests have been added to validate their functionality and ensure correct propagation during task execution.
Unit tests added: True
Estimated effort to review (1-5, lower is better): 2
flyteorg/flytekit