Skip to content

Commit

Permalink
run healthz server async
Browse files Browse the repository at this point in the history
  • Loading branch information
tjungblu committed Apr 25, 2023
1 parent b7ecd5c commit 2e59317
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/cmd/operator/cmd.go
Expand Up @@ -27,10 +27,12 @@ func NewOperator() *cobra.Command {
// leader election timeouts in the SNO configuration. It causes the operator to fail on the liveness probe while
// waiting for the election timeout, which is prolonged significantly in SNO due to resource constraints.
// for more information see OCPBUGS-12475
err := runHealthzServer(operator.AlivenessChecker)
if err != nil {
klog.Fatal(err)
}
go func() {
err := runHealthzServer(operator.AlivenessChecker)
if err != nil {
klog.Fatalf("error while running healthz server: %v", err)
}
}()

run(cmd, args)
}
Expand Down

0 comments on commit 2e59317

Please sign in to comment.