diff --git a/pkg/models/resources/s2irun.go b/pkg/models/resources/s2irun.go index bed9a14c91830a73494aac2ceb35eefd0f9d5b0c..8f36084ad246c3275bf0d2acb8679d67a10ead0e 100644 --- a/pkg/models/resources/s2irun.go +++ b/pkg/models/resources/s2irun.go @@ -41,6 +41,10 @@ func (*s2iRunSearcher) match(match map[string]string, item *v1alpha1.S2iRun) boo if item.Name != v && item.Labels[displayName] != v { return false } + case status: + if string(item.Status.RunState) != v{ + return false + } default: return false }