@@ -636,6 +636,7 @@ func (r *ReconcileDependencyBuild) handleStateBuilding(ctx context.Context, db *
636636 },
637637 }},
638638 }
639+ // TODO: ### Enclose this within an annotation to denote test CI system in use?
639640 pr .Spec .TaskRunTemplate = tektonpipeline.PipelineTaskRunTemplate {
640641 PodTemplate : & pod.Template {
641642 Env : []v1.EnvVar {
@@ -646,6 +647,16 @@ func (r *ReconcileDependencyBuild) handleStateBuilding(ctx context.Context, db *
646647 },
647648 },
648649 }
650+ // TODO: ### Enclose this within an annotation to denote test CI system in use?
651+ podMem , _ := resource .ParseQuantity ("1792Mi" )
652+ podCPU , _ := resource .ParseQuantity ("4" )
653+ pr .Spec .TaskRunSpecs = []tektonpipeline.PipelineTaskRunSpec {{
654+ PipelineTaskName : pr .Name ,
655+ ComputeResources : & v1.ResourceRequirements {
656+ Requests : v1.ResourceList {"memory" : podMem , "cpu" : podCPU },
657+ Limits : v1.ResourceList {"memory" : podMem , "cpu" : podCPU },
658+ },
659+ }}
649660
650661 if ! jbsConfig .Spec .CacheSettings .DisableTLS {
651662 pr .Spec .Workspaces = append (pr .Spec .Workspaces , tektonpipeline.WorkspaceBinding {Name : "tls" , ConfigMap : & v1.ConfigMapVolumeSource {LocalObjectReference : v1.LocalObjectReference {Name : v1alpha1 .TlsConfigMapName }}})
@@ -1453,7 +1464,7 @@ func (r *ReconcileDependencyBuild) handleStateDeploying(ctx context.Context, db
14531464 podMem , _ := resource .ParseQuantity ("1792Mi" )
14541465 podCPU , _ := resource .ParseQuantity ("4" )
14551466 pr .Spec .TaskRunSpecs = []tektonpipeline.PipelineTaskRunSpec {{
1456- PipelineTaskName : prName ,
1467+ PipelineTaskName : pr . Name ,
14571468 ComputeResources : & v1.ResourceRequirements {
14581469 Requests : v1.ResourceList {"memory" : podMem , "cpu" : podCPU },
14591470 Limits : v1.ResourceList {"memory" : podMem , "cpu" : podCPU },
0 commit comments