KEMBAR78
Add conditional on listing inference pools for status by bjee19 · Pull Request #4104 · nginx/nginx-gateway-fabric · GitHub
Skip to content

Conversation

@bjee19
Copy link
Contributor

@bjee19 bjee19 commented Oct 17, 2025

Add a conditional to inference pool status, so we make a k8sclient call on the InferencePool object only if inference extension is enabled.

Without this fix, if you deploy NGF on main without the inference extension flag enabled, it will print out this error message:

{"level":"error","ts":"2025-10-17T22:34:47Z","logger":"eventHandler","msg":"error listing InferencePools for status update","error":"no matches for kind \"InferencePool\" in version \"inference.networking.k8s.io/v1\"","stacktrace":"github.com/nginx/nginx-gateway-fabric/v2/internal/controller.(*eventHandlerImpl).updateStatuses\n\tgithub.com/nginx/nginx-gateway-fabric/v2/internal/controller/handler.go:378\ngithub.com/nginx/nginx-gateway-fabric/v2/internal/controller.(*eventHandlerImpl).waitForStatusUpdates\n\tgithub.com/nginx/nginx-gateway-fabric/v2/internal/controller/handler.go:295"}

However, there should be no functionality impact by this error message.

@bjee19 bjee19 requested a review from a team as a code owner October 17, 2025 22:35
@github-actions github-actions bot added the bug Something isn't working label Oct 17, 2025
@codecov
Copy link

codecov bot commented Oct 17, 2025

Codecov Report

❌ Patch coverage is 0% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.50%. Comparing base (e4eed2d) to head (33f06a5).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/controller/handler.go 0.00% 13 Missing and 1 partial ⚠️
internal/controller/manager.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4104      +/-   ##
==========================================
- Coverage   86.62%   86.50%   -0.13%     
==========================================
  Files         131      131              
  Lines       17794    17796       +2     
  Branches       74       74              
==========================================
- Hits        15414    15394      -20     
- Misses       2182     2200      +18     
- Partials      198      202       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bjee19 bjee19 merged commit 6ac6832 into main Oct 20, 2025
60 of 61 checks passed
@bjee19 bjee19 deleted the bug/inference-pool-status-error branch October 20, 2025 16:14
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in NGINX Gateway Fabric Oct 20, 2025
bjee19 added a commit that referenced this pull request Oct 20, 2025
Add a conditional to inference pool status, so we make a k8sclient call on the InferencePool object only if inference extension is enabled.
bjee19 added a commit that referenced this pull request Oct 20, 2025
Add a conditional to inference pool status, so we make a k8sclient call on the InferencePool object only if inference extension is enabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants