// retrieveBuildRunsfromBuild returns a list of BuildRuns that are owned by a Build in the same namespace
retrieveBuildRunsfromBuild returns a list of BuildRuns that are owned by a Build in the same namespace
// retrieveBuildRunsfromBuild returns a list of BuildRuns that are owned by a Build in the same namespace
func (r *ReconcileBuild) retrieveBuildRunsfromBuild(ctx context.Context, b *build.Build) (*build.BuildRunList, error) {
	buildRunList := &build.BuildRunList{}
	lbls := map[string]string{
		build.LabelBuild: b.Name,
	}
	opts := client.ListOptions{
		Namespace:     b.Namespace,
		LabelSelector: labels.SelectorFromSet(lbls),
	}
	err := r.client.List(ctx, buildRunList, &opts)
	return buildRunList, err
}
func ( r * ReconcileBuild ) retrieveBuildRunsfromBuild ( ctx context . Context , b * build . Build ) ( * build . BuildRunList , error ) { buildRunList := & build . BuildRunList { } lbls := map [ string ] string { build . LabelBuild : b . Name , } opts := client . ListOptions { Namespace : b . Namespace , LabelSelector : labels . SelectorFromSet ( lbls ) , } err := r . client . List ( ctx , buildRunList , & opts ) return buildRunList , err }
retrieveBuildRunsfromBuild returns a list of BuildRuns that are owned by a Build in the same namespace
retrieveBuildRunsfromBuild returns a list of BuildRuns that are owned by a Build in the same namespace