Skip to content

Conversation

rahulgurnani
Copy link
Contributor

@rahulgurnani rahulgurnani commented Sep 2, 2025

What type of PR is this?

/kind bug

What this PR does / why we need it:

Fixes helm chart to support reading EPP plugin config from a yaml file

Which issue(s) this PR fixes:

Fixes #1465

Does this PR introduce a user-facing change?:

Add support to pass custom plugin config to EPP

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/bug Categorizes issue or PR as related to a bug. labels Sep 2, 2025
Copy link

netlify bot commented Sep 2, 2025

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

Name Link
🔨 Latest commit c66d169
🔍 Latest deploy log https://app.netlify.com/projects/gateway-api-inference-extension/deploys/68ba1ea81b0b4f00086e86d3
😎 Deploy Preview https://deploy-preview-1516--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 needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Sep 2, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @rahulgurnani. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 2, 2025
@nirrozenbaum
Copy link
Contributor

@rahulgurnani can you explain the idea of this PR?
current helm chart in main supports plugin config from yaml through the helm chart (due to a bug that wasn't possible but bug was fixed in #1508).
we should cherry pick that fix and publish RC3 soon.
after that fix customPluginsConfig should be set through the helm chart as the example shows in the values.yaml file:

# This is the plugins configuration file.
# pluginsCustomConfig:
# custom-plugins.yaml: |
# apiVersion: inference.networking.x-k8s.io/v1alpha1
# kind: EndpointPickerConfig
# plugins:
# - type: custom-scorer
# parameters:
# custom-threshold: 64
# schedulingProfiles:
# - name: default
# plugins:
# - pluginRef: custom-scorer

@rahulgurnani
Copy link
Contributor Author

@rahulgurnani can you explain the idea of this PR? current helm chart in main supports plugin config from yaml through the helm chart (due to a bug that wasn't possible but bug was fixed in #1508). we should cherry pick that fix and publish RC3 soon. after that fix customPluginsConfig should be set through the helm chart as the example shows in the values.yaml file:

# This is the plugins configuration file.
# pluginsCustomConfig:
# custom-plugins.yaml: |
# apiVersion: inference.networking.x-k8s.io/v1alpha1
# kind: EndpointPickerConfig
# plugins:
# - type: custom-scorer
# parameters:
# custom-threshold: 64
# schedulingProfiles:
# - name: default
# plugins:
# - pluginRef: custom-scorer

We presently don't mention about the customPluginsConfig in the README file:
https://github.com/kubernetes-sigs/gateway-api-inference-extension/blob/main/config/charts/inferencepool/README.md

So from a user of helm chart perspective, I was thinking, if we can pass it from a local file yaml file and update readme accordingly, it may be more suitable. So you write custom plugin config in a yaml and pass the path to the config file as a parameter to the helm chart. So we can move this change in the values.yaml.

After looking at your change, I think we can do that as well. We just need to modify the Readme as well.

@nirrozenbaum
Copy link
Contributor

We presently don't mention about the customPluginsConfig in the README file:
https://github.com/kubernetes-sigs/gateway-api-inference-extension/blob/main/config/charts/inferencepool/README.md

you're correct. good catch!
This should definitely be covered in the README.md. I think it should be added in the table at the bottom but it's a central piece of the configuration so it's worth adding a dedicated section about it. so like we have Install with Custom Environment Variables section, we should have Install with Custom Plugins Configuration section.

@rahulgurnani rahulgurnani force-pushed the helm-plugin branch 3 times, most recently from 53d138c to b1c455b Compare September 3, 2025 00:31
@rahulgurnani rahulgurnani changed the title Fix helm chart to support reading EPP plugin config from a yaml file Update helm chart Readme with custom plugin config Sep 3, 2025
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 3, 2025
@rahulgurnani
Copy link
Contributor Author

@nirrozenbaum
Sounds good, updated the readme in this PR.

@rahulgurnani rahulgurnani marked this pull request as ready for review September 3, 2025 00:56
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 3, 2025
@k8s-ci-robot k8s-ci-robot requested a review from kfswain September 3, 2025 00:56
@kfswain
Copy link
Collaborator

kfswain commented Sep 3, 2025

/ok-to-test
/approve

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Sep 3, 2025
@nirrozenbaum
Copy link
Contributor

/lgtm
/approve

Thanks @rahulgurnani!

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

[APPROVALNOTIFIER] This PR is APPROVED

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

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 5b359a1 into kubernetes-sigs:main Sep 5, 2025
9 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/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

[1.0 launch] Use non-default plugin config with helm chart
4 participants