-
Notifications
You must be signed in to change notification settings - Fork 31
Use standard buildah-oci-ta #2156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
4683e58
cbc2848
ca560ae
b9c1bce
b750036
bac0bca
7629329
1dc70f3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -636,6 +636,7 @@ func (r *ReconcileDependencyBuild) handleStateBuilding(ctx context.Context, db * | |
| }, | ||
| }}, | ||
| } | ||
| // TODO: ### Enclose this within an annotation to denote test CI system in use? | ||
| pr.Spec.TaskRunTemplate = tektonpipeline.PipelineTaskRunTemplate{ | ||
| PodTemplate: &pod.Template{ | ||
| Env: []v1.EnvVar{ | ||
|
|
@@ -646,6 +647,17 @@ func (r *ReconcileDependencyBuild) handleStateBuilding(ctx context.Context, db * | |
| }, | ||
| }, | ||
| } | ||
| // TODO: ### Enclose this within an annotation to denote test CI system in use? | ||
|
||
| podMemR, _ := resource.ParseQuantity("1792Mi") | ||
| podMemL, _ := resource.ParseQuantity("3584Mi") | ||
| podCPU, _ := resource.ParseQuantity("500m") | ||
| pr.Spec.TaskRunSpecs = []tektonpipeline.PipelineTaskRunSpec{{ | ||
| PipelineTaskName: BuildTaskName, | ||
| ComputeResources: &v1.ResourceRequirements{ | ||
| Requests: v1.ResourceList{"memory": podMemR, "cpu": podCPU}, | ||
| Limits: v1.ResourceList{"memory": podMemL, "cpu": podCPU}, | ||
| }, | ||
| }} | ||
|
|
||
| if !jbsConfig.Spec.CacheSettings.DisableTLS { | ||
| pr.Spec.Workspaces = append(pr.Spec.Workspaces, tektonpipeline.WorkspaceBinding{Name: "tls", ConfigMap: &v1.ConfigMapVolumeSource{LocalObjectReference: v1.LocalObjectReference{Name: v1alpha1.TlsConfigMapName}}}) | ||
|
|
@@ -1424,7 +1436,7 @@ func (r *ReconcileDependencyBuild) handleStateDeploying(ctx context.Context, db | |
| Pipeline: &v12.Duration{Duration: time.Hour * v1alpha1.DefaultTimeout}, | ||
| Tasks: &v12.Duration{Duration: time.Hour * v1alpha1.DefaultTimeout}, | ||
| } | ||
| pr.Spec.PipelineSpec, err = createDeployPipelineSpec(jbsConfig, buildRequestProcessorImage, orasOptions) | ||
| pr.Spec.PipelineSpec, err = createDeployPipelineSpec(jbsConfig, buildRequestProcessorImage) | ||
| if err != nil { | ||
| return reconcile.Result{}, err | ||
| } | ||
|
|
@@ -1438,6 +1450,7 @@ func (r *ReconcileDependencyBuild) handleStateDeploying(ctx context.Context, db | |
| pr.Spec.Workspaces = append(pr.Spec.Workspaces, tektonpipeline.WorkspaceBinding{Name: "tls", EmptyDir: &v1.EmptyDirVolumeSource{}}) | ||
| } | ||
| pr.Spec.Timeouts = &tektonpipeline.TimeoutFields{Pipeline: &v12.Duration{Duration: time.Hour * v1alpha1.DefaultTimeout}} | ||
| // TODO: ### Enclose this within an annotation to denote test CI system in use? Could inline orasOptions then as well? | ||
| pr.Spec.TaskRunTemplate = tektonpipeline.PipelineTaskRunTemplate{ | ||
| PodTemplate: &pod.Template{ | ||
| Env: []v1.EnvVar{ | ||
|
|
@@ -1448,6 +1461,16 @@ func (r *ReconcileDependencyBuild) handleStateDeploying(ctx context.Context, db | |
| }, | ||
| }, | ||
| } | ||
| // TODO: ### Enclose this within an annotation to denote test CI system in use? | ||
| podMem, _ := resource.ParseQuantity("1024Mi") | ||
| podCPU, _ := resource.ParseQuantity("250m") | ||
| pr.Spec.TaskRunSpecs = []tektonpipeline.PipelineTaskRunSpec{{ | ||
| PipelineTaskName: DeployTaskName, | ||
| ComputeResources: &v1.ResourceRequirements{ | ||
| Requests: v1.ResourceList{"memory": podMem, "cpu": podCPU}, | ||
| Limits: v1.ResourceList{"memory": podMem, "cpu": podCPU}, | ||
| }, | ||
| }} | ||
|
|
||
| if err := controllerutil.SetOwnerReference(db, &pr, r.scheme); err != nil { | ||
| return reconcile.Result{}, err | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While I've removed my original changes, this file is now out of date and either needs deleting or updating again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've now removed it in this PR to make things clearer.