Skip to content

Conversation

@elevran
Copy link
Contributor

@elevran elevran commented Nov 4, 2025

What type of PR is this?
/kind feature

What this PR does / why we need it:
Allow setting of the runners executable name when logging the commit SHA and build informaiton.
Since runner.Run logs a fixed GIE build, this PR allows setting a containing executable name for the runner. The executable defaults to GIE as in the current code.

The IGW runner is reused outside of this repo (e.g., llm-d sidecar and inference-scheduler). The version values are set
via linker flags (-X ....) populating the values from the importing repo and not based on IGW's version being used.

A different option would be to extend the version struct to include an executable name directly (i.e., allow overriding via linker flags as well).

Which issue(s) this PR fixes:
NA

Does this PR introduce a user-facing change?:

NONE

Signed-off-by: Etai Lev Ran <elevran@gmail.com>
@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Nov 4, 2025
@netlify
Copy link

netlify bot commented Nov 4, 2025

Deploy Preview for gateway-api-inference-extension ready!

Name Link
🔨 Latest commit 34103e6
🔍 Latest deploy log https://app.netlify.com/projects/gateway-api-inference-extension/deploys/690afe15f797b2000855f324
😎 Deploy Preview https://deploy-preview-1813--gateway-api-inference-extension.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 4, 2025
@k8s-ci-robot k8s-ci-robot requested review from ahg-g and kfswain November 4, 2025 15:42
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Nov 4, 2025
@kfswain
Copy link
Collaborator

kfswain commented Nov 4, 2025

/approve

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 4, 2025

// Runner is used to run epp with its plugins
type Runner struct {
eppExecutable string // the EPP executable name
Copy link
Contributor

Choose a reason for hiding this comment

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

can we do this with a cmd-line arg instead of a field in Runner struct?
the other fields are part of runner so we could set them via code for testing purposes, executable name on the other hand is only for logging when the pod starts.

is there any advantage or special reason to have it as a field?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

do you mean use argv[0] which has the exe name?
we could, but might be a generic epp across multiple executables. Adding it as explicit field, settable by the runner's containing exe, allows more control.
If you mean allow passing a new command line parameter and propagating to the runner to print, I think it is an overkill.
Anoter option is to make it an explicit pramater in the call to runner.Run but that seems like a bigger change across multiple files/repos.
So a field is easily settable, allowing caller control, and has smallest change scope.

Copy link
Contributor

Choose a reason for hiding this comment

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

I mean cmd-line arg like:

--executable-name llm-d

Signed-off-by: Etai Lev Ran <elevran@gmail.com>
@nirrozenbaum
Copy link
Contributor

/lgtm
/approve

my comment is a nit, no need to block the PR on that.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 5, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: elevran, kfswain, nirrozenbaum

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [kfswain,nirrozenbaum]

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

@k8s-ci-robot k8s-ci-robot merged commit 4e01160 into kubernetes-sigs:main Nov 5, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants