fix: apply clientConnection QPS/burst to the manager client#3432
fix: apply clientConnection QPS/burst to the manager client#3432abhijeet-dhumal wants to merge 6 commits into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Pull request overview
This PR fixes a wiring gap where clientConnection QPS/burst settings (already defaulted/validated in the Configuration API) were not being applied to the controller manager’s Kubernetes rest.Config, and adds Helm chart parity plus tests to prevent regression.
Changes:
- Adds
ApplyClientConnection()inpkg/configand applies it before creating the controller-runtime manager. - Extends the Helm chart to emit
clientConnectioninto the generated manager config. - Adds unit tests to cover applying
clientConnectionto arest.Config, including default and custom config loading.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
pkg/config/config.go |
Introduces ApplyClientConnection() to apply QPS/burst onto a rest.Config. |
pkg/config/config_test.go |
Adds tests for ApplyClientConnection() and for load+apply behavior. |
cmd/trainer-controller-manager/main.go |
Wires clientConnection into the manager’s REST config before ctrl.NewManager(). |
charts/kubeflow-trainer/values.yaml |
Adds manager.config.clientConnection values (qps/burst) with defaults. |
charts/kubeflow-trainer/templates/manager/configmap.yaml |
Renders clientConnection into the manager configmap template. |
robert-bell
left a comment
There was a problem hiding this comment.
Thanks @abhijeet-dhumal this was a good spot.
andreyvelich
left a comment
There was a problem hiding this comment.
Thanks for the contribution! This review was performed using AI tools.
Signed-off-by: abhijeet-dhumal <abhijeetdhumal652@gmail.com>
Signed-off-by: abhijeet-dhumal <abhijeetdhumal652@gmail.com>
…convention Signed-off-by: abhijeet-dhumal <abhijeetdhumal652@gmail.com>
Signed-off-by: abhijeet-dhumal <abhijeetdhumal652@gmail.com>
… redundant test, fractional QPS in values Signed-off-by: abhijeet-dhumal <abhijeetdhumal652@gmail.com>
bf5ae42 to
54719e0
Compare
Signed-off-by: abhijeet-dhumal <abhijeetdhumal652@gmail.com>
What this PR does / why we need it:
The clientConnection QPS/burst configuration is validated and defaulted but never applied to the manager's Kubernetes client.
Fixes #3431
Checklist: