Repository navigation
Keep webhook configuration watches active during draining - #3436
Conversation
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dprotaso The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3436 +/- ##
=======================================
Coverage 75.39% 75.39%
=======================================
Files 189 189
Lines 8371 8371
=======================================
Hits 6311 6311
Misses 1817 1817
Partials 243 243 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
/lgtm Thanks! |
|
/cherry-pick release-1.24 |
|
@dprotaso: new pull request created: #3452 DetailsIn response to this:
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. |
|
@dprotaso: new pull request created: #3453 DetailsIn response to this:
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. |
Summary
Keep the ConfigMap watcher running while admission webhooks drain and finish HTTP shutdown.
Currently the shutdown signal stops the ConfigMap watcher at the same time that webhook draining begins. A draining webhook can still receive admission requests, but its configuration is frozen. This caused Serving's
TestInitScaleZeroto rejectinitial-scale=0afterallow-zero-initial-scalehad been enabled: the request reached a draining webhook that retained the old setting.This is a mitigation while Kubernetes can still route admission requests to draining webhooks.
Changes
startConfigMapWatcherForDrain.No changes to webhook routing, admission logic, or Serving are included.
Validation
go test -race ./injection/sharedmain ./configmap/informer ./webhook git diff --checkBoth passed.