Skip to content

Extend the PodTemplateOverrides structure with "manager" field #2856

@mimowo

Description

@mimowo

What you would like to be added?

I would like to extend the PodSetOverrides for the optional "manager" field.

This is needed for the integration with Kueue done properly.

When Kueue starts a Job it is using the PodSetOverrides to set NodeLabels, Tolerations, based on the selected ResourceFlavor. Then, on suspending the Job Kueue needs to "revert" (remove) the overrides.

However, it is not clear from Kueue perspecive which overrides it did, and which were done by a user, or another controller. So, to overcome this we temporarily have a workaround by injecting the "kueue.x-k8s.io/override-idx" annotation which indicates the modified "override" by Kueue.

Why is this needed?

To make the interface between the Kueue and TrainJob easier to understand.

Probably other controllers or users who modify the "PodSetOverrides" could also benefit by annotating "who" owns the override.

Love this feature?

Give it a 👍 We prioritize the features with most 👍

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions