diff --git a/task-generator/trusted-artifacts/ta.go b/task-generator/trusted-artifacts/ta.go index 19e1c5760a..6bb275d1ea 100644 --- a/task-generator/trusted-artifacts/ta.go +++ b/task-generator/trusted-artifacts/ta.go @@ -10,6 +10,7 @@ import ( "github.com/google/go-containerregistry/pkg/authn" "github.com/google/go-containerregistry/pkg/name" "github.com/google/go-containerregistry/pkg/v1/remote" + resource "k8s.io/apimachinery/pkg/api/resource" pipeline "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1" core "k8s.io/api/core/v1" ) @@ -334,6 +335,16 @@ func perform(task *pipeline.Task, recipe *Recipe) error { }, }, Args: args, + ComputeResources: core.ResourceRequirements{ + Requests: core.ResourceList{ + core.ResourceCPU: resource.MustParse("1"), + core.ResourceMemory: resource.MustParse("3Gi"), + }, + Limits: core.ResourceList{ + core.ResourceCPU: resource.MustParse("1"), + core.ResourceMemory: resource.MustParse("3Gi"), + }, + }, } if task.Spec.StepTemplate == nil && !recipe.PreferStepTemplate { diff --git a/task/git-clone-oci-ta/0.1/git-clone-oci-ta.yaml b/task/git-clone-oci-ta/0.1/git-clone-oci-ta.yaml index 3629da9fd7..7cdc186fb6 100644 --- a/task/git-clone-oci-ta/0.1/git-clone-oci-ta.yaml +++ b/task/git-clone-oci-ta/0.1/git-clone-oci-ta.yaml @@ -310,3 +310,10 @@ spec: env: - name: IMAGE_EXPIRES_AFTER value: $(params.ociArtifactExpiresAfter) + computeResources: + limits: + cpu: "1" + memory: 3Gi + requests: + cpu: "1" + memory: 3Gi diff --git a/task/prefetch-dependencies-oci-ta/0.1/prefetch-dependencies-oci-ta.yaml b/task/prefetch-dependencies-oci-ta/0.1/prefetch-dependencies-oci-ta.yaml index 87deeb25b5..0a46254d53 100644 --- a/task/prefetch-dependencies-oci-ta/0.1/prefetch-dependencies-oci-ta.yaml +++ b/task/prefetch-dependencies-oci-ta/0.1/prefetch-dependencies-oci-ta.yaml @@ -394,6 +394,13 @@ spec: cachi2 --log-level="$LOG_LEVEL" inject-files /var/workdir/cachi2/output \ --for-output-dir=/cachi2/output + computeResources: + limits: + cpu: "1" + memory: 3Gi + requests: + cpu: "1" + memory: 3Gi - name: unregister-rhsm image: quay.io/redhat-appstudio/cachi2:0.15.0@sha256:b141cb5cf4d98e6c5f668f1fe172e1d68f2a44ac1027403fbcff94ce1e68185d script: | @@ -417,3 +424,10 @@ spec: env: - name: IMAGE_EXPIRES_AFTER value: $(params.ociArtifactExpiresAfter) + computeResources: + limits: + cpu: "1" + memory: 3Gi + requests: + cpu: "1" + memory: 3Gi diff --git a/task/prefetch-dependencies/0.1/prefetch-dependencies.yaml b/task/prefetch-dependencies/0.1/prefetch-dependencies.yaml index 9a859d42de..dd85f25c74 100644 --- a/task/prefetch-dependencies/0.1/prefetch-dependencies.yaml +++ b/task/prefetch-dependencies/0.1/prefetch-dependencies.yaml @@ -255,6 +255,13 @@ spec: readOnly: true - mountPath: /activation-key name: activation-key + computeResources: + limits: + cpu: '1' + memory: 3Gi + requests: + cpu: '1' + memory: 3Gi script: | #!/bin/bash