Skip to content

Commit 133f97c

Browse files
authored
Run webhook checker only for control-plane controller (#1236)
Signed-off-by: makhov <amakhov@mirantis.com>
1 parent 04e174f commit 133f97c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ func main() {
201201
setupLog.Error(err, "unable to start manager")
202202
os.Exit(1)
203203
}
204-
_ = mgr.AddReadyzCheck("webhook-check", mgr.GetWebhookServer().StartedChecker())
205204

206205
restConfig, err := ctrl.GetConfig()
207206
if err != nil {
@@ -274,6 +273,7 @@ func main() {
274273
}
275274

276275
if isControllerEnabled(controlPlaneController) {
276+
_ = mgr.AddReadyzCheck("webhook-check", mgr.GetWebhookServer().StartedChecker())
277277
if err = (&controller.ClusterReconciler{
278278
Client: mgr.GetClient(),
279279
Scheme: mgr.GetScheme(),

0 commit comments

Comments
 (0)