Repository navigation
fix(helm): validate gateway listener ports - #3179
guanchzhou wants to merge 3 commits into
Conversation
|
All contributors have signed the DCO ✍️ ✅ |
|
I have read the DCO document and I hereby sign the DCO. |
|
recheck |
|
This pull request has had no activity for 14 days and is now marked stale. It may be closed in 7 days if there is no further activity. |
|
not stale |
sylvesterkaczmarek
left a comment
There was a problem hiding this comment.
service.metricsPort: false still slips through this validation. Helm's default treats false as empty, so it becomes 0 before the type check. Could this distinguish a missing value from an explicit boolean and add a false case?
|
@sylvesterkaczmarek good catch. Helm's Fixed in d8cd988. The |
d8cd988 to
93d0317
Compare
sylvesterkaczmarek
left a comment
There was a problem hiding this comment.
Rechecked 93d0317. metricsPort now distinguishes an absent key from an explicit value before string conversion, so false remains "false" and fails the integer check instead of being defaulted to 0. The focused Helm regression covers the exact case I raised. My concern is resolved.
|
This pull request has had no activity for 14 days and is now marked stale. It may be closed in 7 days if there is no further activity. |
|
Not stale.
…On 4. Oct 2026 at 13.19 +0300, github-actions[bot] ***@***.***>, wrote:
github-actions[bot] left a comment (NVIDIA/OpenShell#3179)
This pull request has had no activity for 14 days and is now marked stale. It may be closed in 7 days if there is no further activity.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Reject disabled required listeners, out-of-range values, and port collisions before Kubernetes accepts an unusable gateway workload. Signed-off-by: Andrey Maltsev <maltsev.andrey@gmail.com>
Validate raw listener port values before integer conversion so booleans and fractional numbers cannot bypass range and collision checks. Signed-off-by: Andrey Maltsev <maltsev.andrey@gmail.com>
Preserve explicitly configured metrics port values during validation so boolean false cannot be converted into the disabled numeric value. Signed-off-by: Andrey Maltsev <maltsev.andrey@gmail.com>
93d0317 to
62866fc
Compare
Summary
Reject invalid gateway listener port values during Helm rendering, before Kubernetes admission or gateway startup.
Related Issue
No issue required: this is localized chart validation for configurations the gateway already cannot run.
Changes
0as disabled and validate enabled metrics portsTesting
mise run pre-commitpasseshelm unittest deploy/helm/openshell(133 tests)helm unittest deploy/helm/openshell-workspace(4 tests)Checklist