Skip to content

Commit c990210

Browse files
committed
debug: fix unknown build phase
1 parent 6dd1e1f commit c990210

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • pkg/build/apiserver/registry/wait

pkg/build/apiserver/registry/wait/rest.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ func WaitForRunningBuild(buildClient buildtypedclient.BuildsGetter, buildNamespa
7272
if event.Type == watch.Error {
7373
return false, ErrWatchError{fmt.Errorf("watch event type error: %v", event)}
7474
}
75+
// Bookmark events are sent by the WatchList protocol to signal sync completion.
76+
// They don't represent actual Build changes and should be ignored.
77+
if event.Type == watch.Bookmark {
78+
return false, nil
79+
}
7580
obj, ok := event.Object.(*buildv1.Build)
7681
if !ok {
7782
return false, fmt.Errorf("received unknown object while watching for builds: %T", event.Object)

0 commit comments

Comments
 (0)