Skip to content

Commit

Permalink
Fix updater causing restarts. (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored Apr 3, 2023
1 parent 17d8025 commit 19b6328
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ func main() {
// before starting up the controllers, we update components to the specified versions
// otherwise we can run into races where controllers start reconfiguring the firewall
// while an update is progressing
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
updaterCtx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
defer cancel()
err = updater.Run(ctx, fw)
err = updater.Run(updaterCtx, fw)
if err != nil {
l.Fatalw("unable to update firewall components", "error", err)
}
Expand Down

0 comments on commit 19b6328

Please sign in to comment.