We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 091e019 commit 573400bCopy full SHA for 573400b
cmd/hubagent/main.go
@@ -172,6 +172,8 @@ func main() {
172
// Add webhook readiness check AFTER controllers are set up (when ResourceInformer is initialized)
173
// This prevents webhook from accepting requests before discovery cache is populated
174
if opts.EnableWebhook {
175
+ // AddReadyzCheck adds additional readiness check instead of replacing the one registered earlier provided the name is different.
176
+ // Both registered checks need to pass for the manager to be considered ready.
177
if err := mgr.AddReadyzCheck("webhook-cache", webhook.ResourceInformerReadinessChecker(validator.ResourceInformer)); err != nil {
178
klog.ErrorS(err, "unable to set up webhook readiness check")
179
exitWithErrorFunc()
0 commit comments