Skip to content

fix(apply): preserve FileKeyRef when converting env vars - #4289

Closed
DevaanshPathak wants to merge 1 commit into
kubeflow:masterfrom
DevaanshPathak:fix/apply-envvar-filekeyref
Closed

DevaanshPathak wants to merge 1 commit into
kubeflow:masterfrom
DevaanshPathak:fix/apply-envvar-filekeyref

Conversation

@DevaanshPathak

Copy link
Copy Markdown
Contributor

Summary

  • Copy valueFrom.fileKeyRef in apply.EnvVar so TrainJob trainer/initializer env vars survive conversion onto the JobSet.
  • Also preserve fieldRef.apiVersion on the same path.
  • Add unit tests for both conversions.

Fixes #4288

Test plan

  • go test ./pkg/apply/ -count=1
  • CI on this PR

TrainJob trainer env already accepts valueFrom.fileKeyRef, but apply.EnvVar
dropped it (and fieldRef.apiVersion) before the JobSet was applied.

Fixes kubeflow#4288

Signed-off-by: DevaanshPathak <devaanshpathak08@gmail.com>
Copilot AI balanced review requested due to automatic review settings October 21, 2026 05:12
@github-project-automation github-project-automation Bot moved this to Needs Triage in Kubeflow Trainer Oct 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@google-oss-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign jeffwan for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@andreyvelich andreyvelich left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in: #4197
/close

@google-oss-prow google-oss-prow Bot closed this Oct 21, 2026
@google-oss-prow

Copy link
Copy Markdown
Contributor

@andreyvelich: Closed this PR.

Details

In response to this:

Fixed in: #4197
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@github-project-automation github-project-automation Bot moved this from Needs Triage to Done in Kubeflow Trainer Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

apply.EnvVar drops FileKeyRef when converting trainer env vars

3 participants