cool-lifeguard-49380
06/08/2025, 4:12 PMfreezing-airport-6809
cool-lifeguard-49380
06/19/2025, 1:27 PMIt can be said about pod_template, by the nameand this does go into thepod_template
attribute.k8spod
Ok lets keep Labels and annotations, but lets not call is K8sObjectMetadata. Lets keep it as labels and annotations in TaskMetadata and the plugin is responsible to put it into k8s.
Moreover, lets document it saying, labels and annotations are optional parameters, that may not be applied in all cases. (<https://github.com/flyteorg/flytekit/pull/3243#issuecomment-2954292408
|source>)@freezing-airport-6809 do I understand you correctly that you would like to have
message TaskMetadata {
...
// Metadata applied to task pods or task CR objects.
// In flytekit, labels and annotations resulting in this metadata field
// are provided via `@task(labels=..., annotations=...)`.
// For tasks backed by pods like PythonFunctionTask, these take precedence
// over the metadata provided via `@task(pod_template=PodTemplate(labels=...))` which are transported
// in the K8sPod message. For tasks backed by CRDs, this metadata is applied to
// the CR object itself while the metadata in the pod template/K8sPod is applied
// to the pod template spec of the CR object.
K8sObjectMetadata metadata = 16;
}
changed to
message TaskMetadata {
...
labels = ...
annotations = ...
}
here?cool-lifeguard-49380
06/19/2025, 1:27 PMfreezing-airport-6809
cool-lifeguard-49380
06/25/2025, 10:02 AMfreezing-airport-6809
freezing-airport-6809
freezing-airport-6809
freezing-airport-6809
freezing-airport-6809
freezing-airport-6809
cool-lifeguard-49380
06/25/2025, 1:52 PMBut if you do this this will change the idl tooI don’t think anything makes use of the metadata in idl yet because I introduced it only recently. On the flytekit side there is no support for it yet, PR is in review.
cool-lifeguard-49380
06/25/2025, 1:52 PMRemind me why do you need bothI only need annotations. Felt more complete to also handle labels. For instance because pyflyte has both as cli args.
cool-lifeguard-49380
06/25/2025, 1:53 PMfreezing-airport-6809
freezing-airport-6809
cool-lifeguard-49380
06/25/2025, 2:15 PMYes let’s go. Please let’s not add too many things in there👍
cool-lifeguard-49380
06/25/2025, 2:15 PM