From 19b632879c3f3c016a60c0381dd20b93096e50fd Mon Sep 17 00:00:00 2001 From: Gerrit Date: Mon, 3 Apr 2023 15:14:21 +0200 Subject: [PATCH] Fix updater causing restarts. (#149) --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index fe6114d5..e0f41177 100644 --- a/main.go +++ b/main.go @@ -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) }