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

Add well-known label to InferenceGraphs #4236

Merged
merged 1 commit into from
Mar 8, 2025
Merged

Conversation

israel-hdez
Copy link
Contributor

@israel-hdez israel-hdez commented Feb 7, 2025

What this PR does / why we need it:

We require to add an AuthorizationPolicy to the resulting pods of InferenceGraph (serverless mode). In Istio, Workload Selectors require a <key, value> pair. Apparently, there is no support to match only on the presence of a label key (it needs to be both <key,value>). See https://istio.io/latest/docs/reference/config/type/workload-selector/#WorkloadSelector.

Thus, to correctly apply AuthorizationPolicies, this is adding the serving.kserve.io/kind: InferenceGraph label to pods that belong to InferenceGraph.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):

N/A

Type of changes
Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Feature/Issue validation/testing:

Deploying an InferenceGraph in Serverless mode. Verify that the new label is present in the resulting pods.

Checklist:

  • Have you added unit/e2e tests that prove your fix is effective or that this feature works?
  • [N/A] Has code been commented, particularly in hard-to-understand areas?
  • [N/A] Have you made corresponding changes to the documentation?

Release note:

Add well-known label to InferenceGraphs

Re-running failed tests

  • /rerun-all - rerun all failed workflows.
  • /rerun-workflow <workflow name> - rerun a specific failed workflow. Only one workflow name can be specified. Multiple /rerun-workflow commands are allowed per comment.

@israel-hdez
Copy link
Contributor Author

/rerun-all

1 similar comment
@israel-hdez
Copy link
Contributor Author

/rerun-all

Copy link
Contributor

@spolti spolti left a comment

Choose a reason for hiding this comment

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

/lgtm

terrytangyuan
terrytangyuan previously approved these changes Mar 6, 2025
Copy link
Member

@terrytangyuan terrytangyuan left a comment

Choose a reason for hiding this comment

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

Thanks!

/lgtm
/approve

We require to add an `AuthorizationPolicy` to the resulting pods of InferenceGraph (serverless mode).
In Istio, Workload Selectors require a <key, value> pair. Apparently, there is no support to match only on the presence of a label key. See https://istio.io/latest/docs/reference/config/type/workload-selector/#WorkloadSelector.

Thus, to correctly apply AuthorizationPolicies, this is adding the `serving.kserve.io/kind: InferenceGraph` to pods that belong to InferenceGraph.

Signed-off-by: Edgar Hernández <[email protected]>
@yuzisun yuzisun merged commit 4612cd6 into kserve:master Mar 8, 2025
69 checks passed
@israel-hdez israel-hdez deleted the ig-label branch March 10, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants