Skip to content

Commit bddbb19

Browse files
committed
Terminate kcp process if controller installation fails
On-behalf-of: @SAP [email protected] Signed-off-by: Marvin Beckers <[email protected]>
1 parent e7d1d54 commit bddbb19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ loop:
678678
if len(s.controllers) == 0 {
679679
if err = s.installControllers(ctx, controllerConfig, gvrs); err != nil {
680680
logger.Error(err, "error in re-registering controllers")
681-
return
681+
klog.FlushAndExit(klog.ExitFlushTimeout, 1)
682682
}
683683
}
684684
s.startControllers(leaderElectionCtx)

0 commit comments

Comments
 (0)