From 3f3b5b42f80538f2814e6a00016d0a968c76c860 Mon Sep 17 00:00:00 2001 From: Patrick Decat Date: Tue, 7 May 2019 18:01:44 +0200 Subject: [PATCH] Lower repository file rewriting timeout from 5 minutes to 30 seconds Signed-off-by: Patrick Decat --- cmd/helm/repo_add.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/helm/repo_add.go b/cmd/helm/repo_add.go index ef9ddf223..0257367d6 100644 --- a/cmd/helm/repo_add.go +++ b/cmd/helm/repo_add.go @@ -137,7 +137,7 @@ func addRepository(name, url, username, password string, home helmpath.Home, cer // Lock the repository file for concurrent processes synchronization and re-read its content before updating it fileLock := flock.New(home.RepositoryFile()) - lockCtx, cancel := context.WithTimeout(context.Background(), 5*time.Minute) + lockCtx, cancel := context.WithTimeout(context.Background(), 30*time.Second) defer cancel() locked, err := fileLock.TryLockContext(lockCtx, time.Second) if err == nil && locked {