Skip to content

Add PodMetadataPatch field to workflow template definition #14661

@alyssacgoins

Description

@alyssacgoins

Summary

Add a PodMetadataPatch field to the workflow template definition to allow the workflow controller to update the Metadata field. This field would function similarly to PodSpecPatch, and logic for applying the patch would need to be added in workflow/controller/workflowpod.go

// PodMetadataPatch holds strategic merge patch to apply against the pod metadata. Allows parameterization of
// metadata fields Labels and Annotations, which are not strings.
PodMetadataPatch string `json:"podMetadataPatch,omitempty" protobuf:"bytes,31,opt,name=podMetadataPatch"

Use Cases

  • This feature would be used by Kubeflow Pipelines (KFP) to apply task-specific pod metadata. In KFP currently, pod metadata set on a single task is applied to pods for all the tasks in an input pipeline because the workflow template used for task execution is reused. Having a PodMetadataPatch field on the template definition would allow KFP to pass in a single, task-specific patch parameter each time that template is called.

Message from the maintainers:

Love this feature request? Give it a 👍. We prioritise the proposals with the most 👍.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions