@@ -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,17 @@ 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+ podMemR , _ := resource .ParseQuantity ("1792Mi" )
652+ podMemL , _ := resource .ParseQuantity ("3584Mi" )
653+ podCPU , _ := resource .ParseQuantity ("500m" )
654+ pr .Spec .TaskRunSpecs = []tektonpipeline.PipelineTaskRunSpec {{
655+ PipelineTaskName : BuildTaskName ,
656+ ComputeResources : & v1.ResourceRequirements {
657+ Requests : v1.ResourceList {"memory" : podMemR , "cpu" : podCPU },
658+ Limits : v1.ResourceList {"memory" : podMemL , "cpu" : podCPU },
659+ },
660+ }}
649661
650662 if ! jbsConfig .Spec .CacheSettings .DisableTLS {
651663 pr .Spec .Workspaces = append (pr .Spec .Workspaces , tektonpipeline.WorkspaceBinding {Name : "tls" , ConfigMap : & v1.ConfigMapVolumeSource {LocalObjectReference : v1.LocalObjectReference {Name : v1alpha1 .TlsConfigMapName }}})
@@ -1438,6 +1450,7 @@ func (r *ReconcileDependencyBuild) handleStateDeploying(ctx context.Context, db
14381450 pr .Spec .Workspaces = append (pr .Spec .Workspaces , tektonpipeline.WorkspaceBinding {Name : "tls" , EmptyDir : & v1.EmptyDirVolumeSource {}})
14391451 }
14401452 pr .Spec .Timeouts = & tektonpipeline.TimeoutFields {Pipeline : & v12.Duration {Duration : time .Hour * v1alpha1 .DefaultTimeout }}
1453+ // TODO: ### Enclose this within an annotation to denote test CI system in use? Could inline orasOptions then as well?
14411454 pr .Spec .TaskRunTemplate = tektonpipeline.PipelineTaskRunTemplate {
14421455 PodTemplate : & pod.Template {
14431456 Env : []v1.EnvVar {
@@ -1448,6 +1461,16 @@ func (r *ReconcileDependencyBuild) handleStateDeploying(ctx context.Context, db
14481461 },
14491462 },
14501463 }
1464+ // TODO: ### Enclose this within an annotation to denote test CI system in use?
1465+ podMem , _ := resource .ParseQuantity ("1024Mi" )
1466+ podCPU , _ := resource .ParseQuantity ("250m" )
1467+ pr .Spec .TaskRunSpecs = []tektonpipeline.PipelineTaskRunSpec {{
1468+ PipelineTaskName : DeployTaskName ,
1469+ ComputeResources : & v1.ResourceRequirements {
1470+ Requests : v1.ResourceList {"memory" : podMem , "cpu" : podCPU },
1471+ Limits : v1.ResourceList {"memory" : podMem , "cpu" : podCPU },
1472+ },
1473+ }}
14511474
14521475 if err := controllerutil .SetOwnerReference (db , & pr , r .scheme ); err != nil {
14531476 return reconcile.Result {}, err
0 commit comments