general error message

Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
pull/13604/head
Austin Abro 9 months ago
parent 6b68a00440
commit e6c6a40fe0
No known key found for this signature in database
GPG Key ID: 92EB5159E403F9D6

@ -84,11 +84,7 @@ func (w *statusWaiter) waitForDelete(ctx context.Context, resourceList ResourceL
if rs.Status == status.NotFoundStatus {
continue
}
if rs.Status == status.UnknownStatus {
errs = append(errs, fmt.Errorf("cannot determine resource state, name: %s, kind: %s, status: %s", rs.Identifier.Name, rs.Identifier.GroupKind.Kind, rs.Status))
} else {
errs = append(errs, fmt.Errorf("resource still exists, name: %s, kind: %s, status: %s", rs.Identifier.Name, rs.Identifier.GroupKind.Kind, rs.Status))
}
errs = append(errs, fmt.Errorf("resource still exists, name: %s, kind: %s, status: %s", rs.Identifier.Name, rs.Identifier.GroupKind.Kind, rs.Status))
}
errs = append(errs, ctx.Err())
return errors.Join(errs...)

Loading…
Cancel
Save