<#3243 Feat: Allow setting k8s labels and annotati...
# flyte-github
c
#3243 Feat: Allow setting k8s labels and annotations in task decorator Pull request opened by fg91 ## Tracking issue Closes flyteorg/flyte#6238 ## Why are the changes needed? See flyteorg/flyte#6421 and flyteorg/flyte#6238. ## What changes were proposed in this pull request? Add
labels
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