Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get and Use TrainingRuntime ApplyConfiguration throughout KF PipelineFramework #2515

Open
tenzen-y opened this issue Mar 13, 2025 · 4 comments

Comments

@tenzen-y
Copy link
Member

What you would like to be added?

Instead of typed TrainingRuntime, we want to get ApplyConfiguration TrainingRuntime, and then reuse it in the whole of KF Pipeline Framework processes

err := r.client.Get(ctx, client.ObjectKey{Namespace: trainJob.Namespace, Name: trainJob.Spec.RuntimeRef.Name}, &trainingRuntime)
if err != nil {
return nil, fmt.Errorf("%w: %w", errorNotFoundSpecifiedTrainingRuntime, err)
}
return r.buildObjects(ctx, trainJob, trainingRuntime.Spec.Template, trainingRuntime.Spec.MLPolicy, trainingRuntime.Spec.PodGroupPolicy)

Why is this needed?

In the SSA semantics, zero and null have completely different meanings. However, converting from typed object to ApplyConfiguration can not recognize the differences. This indicates the KF Pipeline Framework might accidentally remove any fields during SSA PATCH.

Love this feature?

Give it a 👍 We prioritize the features with most 👍

@tenzen-y
Copy link
Member Author

/assign
cc @astefanutti

@tenzen-y
Copy link
Member Author

/area controller

@Harshal292004
Copy link

@tenzen-y May I work on this Issue ? I researched a bit still I am unable to understand from where do I get ApplyConfiguration from. I checked the k8s API as well.

@tenzen-y
Copy link
Member Author

@tenzen-y May I work on this Issue ? I researched a bit still I am unable to understand from where do I get ApplyConfiguration from. I checked the k8s API as well.

As you can see in assigner, I'm currently working on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants