Skip to content

Commit

Permalink
If controller error propagates all the way out, bail execution
Browse files Browse the repository at this point in the history
  • Loading branch information
olemarkus committed Nov 20, 2022
1 parent 2f4c40b commit 07dc39a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func (c *Controller) Run(ctx context.Context) {
for {
if c.ShouldRunOnce(time.Now()) {
if err := c.RunOnce(ctx); err != nil {
log.Error(err)
log.Fatal(err)
}
}
select {
Expand Down

0 comments on commit 07dc39a

Please sign in to comment.