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

Initial Inference Extension Plugin #10684

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

danehans
Copy link
Contributor

@danehans danehans commented Feb 22, 2025

Description

Adds initial support for an inference extension endpoint picker plugin. The plugin will:

  1. Contributes an Upstream based on an InferencePool.
  2. Creates the endpoints collection based on namespace-local Pod IPs from the InferencePool selector.
  3. Creates an Envoy ORIGINAL_DST from the InferencePool-generated.

API changes

N/A

Code changes

  • Adds inferenceextension/endpointpicker pkg
  • Updates krtcollections pkg to transform InferencePool endpoints into Upstream endpoints.
  • Bumps go deps for inference extension pkg
  • Runs code generators due to go dep bump.

CI changes

N/A

Docs changes

Godocs added throughout. User docs will be added in a future PR.

Context

Supports #10411

Interesting decisions

To keep the PR small, this is the first of multiple PRs to implement the endpoint picker plugin. This PR _does not create the ext-prc cluster nor does it add the ext-proc filter to the listeners filter chain.

Testing steps

Unit tests were added. e2e tests are still required and not included here due to the size of the PR.

Notes for reviewers

Refer to the upstream docs for add'l context.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

@danehans
Copy link
Contributor Author

Note: To pass CI, this PR includes a few identical commits as #10676 for go mod bump, code generations, etc.

@danehans danehans changed the title Issue 10411 epp plugin Initial Inference Extension Plugin Feb 22, 2025
@danehans danehans force-pushed the issue_10411_epp_plugin branch from bd4d69b to b981485 Compare February 22, 2025 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant