From 86cde3c3d808a5a94b941d71831a74fbf84c00ae Mon Sep 17 00:00:00 2001 From: Benny Zlotnik Date: Tue, 16 Apr 2024 10:36:17 +0300 Subject: [PATCH] ocp: increase export timeout to 12 hours Signed-off-by: Benny Zlotnik --- pkg/settings/migration.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/settings/migration.go b/pkg/settings/migration.go index afd994df7..b76e480aa 100644 --- a/pkg/settings/migration.go +++ b/pkg/settings/migration.go @@ -98,7 +98,9 @@ func (r *Migration) Load() (err error) { return liberr.Wrap(fmt.Errorf("failed to find environment variable %s", VirtV2vImage)) } r.VirtV2vDontRequestKVM = getEnvBool(VirtV2vDontRequestKVM, false) - if r.CDIExportTokenTTL, err = getPositiveEnvLimit(CDIExportTokenTTL, 0); err != nil { + + // Set timeout to 12 hours instead of the default 2 + if r.CDIExportTokenTTL, err = getPositiveEnvLimit(CDIExportTokenTTL, 720); err != nil { return liberr.Wrap(err) } if r.FileSystemOverhead, err = getNonNegativeEnvLimit(FileSystemOverhead, 10); err != nil {