Skip to content

Commit 9726f21

Browse files
committed
template: make template instance readiness use internal build helpers
1 parent db78e20 commit 9726f21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/template/controller/readiness.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ import (
2929
func checkBuildReadiness(obj runtime.Object) (bool, bool, error) {
3030
b := obj.(*buildapi.Build)
3131

32-
ready := buildutil.IsTerminalPhase(b.Status.Phase) &&
32+
ready := buildapi.IsInternalTerminalPhase(b.Status.Phase) &&
3333
b.Status.Phase == buildapi.BuildPhaseComplete
3434

35-
failed := buildutil.IsTerminalPhase(b.Status.Phase) &&
35+
failed := buildapi.IsInternalTerminalPhase(b.Status.Phase) &&
3636
b.Status.Phase != buildapi.BuildPhaseComplete
3737

3838
return ready, failed, nil

0 commit comments

Comments
 (0)