Skip to content

Commit

Permalink
ensure the eventBroascaster gets shutdown cleanly
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabelf5 committed Nov 28, 2024
1 parent 1e670f7 commit ea66430
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/nginx-ingress/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func main() {
})
eventRecorder := eventBroadcaster.NewRecorder(scheme.Scheme,
api_v1.EventSource{Component: "nginx-ingress-controller"})
defer eventBroadcaster.Shutdown()
mustValidateIngressClass(ctx, kubeClient)

checkNamespaces(ctx, kubeClient)
Expand Down

0 comments on commit ea66430

Please sign in to comment.