1
0
mirror of synced 2026-02-06 19:05:55 +00:00

bootstrap: provide better error message on timeout

Check GitRepository and return Ready condition message as part of error
on timeout.

Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
Somtochi Onyekwere
2023-12-08 13:17:28 +00:00
committed by Sunny
parent b6447800a7
commit 2289c6cc60
5 changed files with 600 additions and 58 deletions

View File

@@ -98,7 +98,7 @@ func (sc *StatusChecker) Assess(identifiers ...object.ObjMetadata) error {
}
if coll.Error != nil || ctx.Err() == context.DeadlineExceeded {
return fmt.Errorf("timed out waiting for condition")
return fmt.Errorf("timed out waiting for all resources to be ready")
}
return nil
}