@@ -624,18 +624,31 @@ func (r *ReconcileDependencyBuild) handleStateBuilding(ctx context.Context, db *
624
624
}
625
625
}
626
626
627
+ trueBool := true
628
+ pr .Spec .TaskRunSpecs = []tektonpipeline.PipelineTaskRunSpec {{
629
+ PipelineTaskName : DeployTaskName ,
630
+ PodTemplate : & pod.Template {
631
+ Env : []v1.EnvVar {
632
+ {
633
+ Name : "MAVEN_PASSWORD" ,
634
+ ValueFrom : & v1.EnvVarSource {SecretKeyRef : & v1.SecretKeySelector {LocalObjectReference : v1.LocalObjectReference {Name : v1alpha1 .MavenSecretName }, Key : v1alpha1 .MavenSecretKey , Optional : & trueBool }},
635
+ },
636
+ },
637
+ },
638
+ }}
639
+
627
640
if jbsConfig .Annotations != nil && jbsConfig .Annotations [jbsconfig .CITests ] == "true" {
628
641
log .Info (fmt .Sprintf ("Configuring resources for %#v" , BuildTaskName ))
629
642
podMemR , _ := resource .ParseQuantity ("1792Mi" )
630
643
podMemL , _ := resource .ParseQuantity ("3584Mi" )
631
644
podCPU , _ := resource .ParseQuantity ("500m" )
632
- pr .Spec .TaskRunSpecs = [] tektonpipeline.PipelineTaskRunSpec { {
645
+ pr .Spec .TaskRunSpecs = append ( pr . Spec . TaskRunSpecs , tektonpipeline.PipelineTaskRunSpec {
633
646
PipelineTaskName : BuildTaskName ,
634
647
ComputeResources : & v1.ResourceRequirements {
635
648
Requests : v1.ResourceList {"memory" : podMemR , "cpu" : podCPU },
636
649
Limits : v1.ResourceList {"memory" : podMemL , "cpu" : podCPU },
637
650
},
638
- }}
651
+ })
639
652
}
640
653
// TODO: DisableTLS defaults to true. Further the tls workspace has been removed from the build pipeline so an alternate method would be needed.
641
654
//if !jbsConfig.Spec.CacheSettings.DisableTLS {
0 commit comments