From 890ab4703dc77ddaf13f133c20e0f9fb53ed0dde Mon Sep 17 00:00:00 2001 From: Jan Hutar Date: Tue, 17 Dec 2024 21:06:45 +0100 Subject: [PATCH] feat(KONFLUX-5670): Define computeResources for prefetch-dependencies tasks --- .../0.1/prefetch-dependencies-oci-ta.yaml | 14 ++++++++++++++ .../0.1/prefetch-dependencies.yaml | 7 +++++++ 2 files changed, 21 insertions(+) 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..caf2402953 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 @@ -322,6 +322,13 @@ spec: value: $(workspaces.netrc.bound) - name: WORKSPACE_NETRC_PATH value: $(workspaces.netrc.path) + computeResources: + limits: + cpu: '1' + memory: 3Gi + requests: + cpu: '1' + memory: 3Gi script: | #!/bin/bash @@ -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..34c07974fd 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: 500m + memory: 3Gi + requests: + cpu: 500m + memory: 3Gi script: | #!/bin/bash