From 729584c5bd464fb6fb729e2e0049c9c2d6b4515e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C3=B3n=20Lobillo?= Date: Tue, 11 Mar 2025 16:57:14 +0100 Subject: [PATCH] Guarantee resources on shiftstackclient pod It's observed that the rsh session is closed automatically reporting rc=0 which is provoking false succeeds on the zuul job. This patch guarantees that the pod has enough resources so the rsh session is never killed. --- roles/shiftstack/templates/shiftstackclient_pod.yml.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/shiftstack/templates/shiftstackclient_pod.yml.j2 b/roles/shiftstack/templates/shiftstackclient_pod.yml.j2 index 1ba3f474dc..eeddac0eea 100644 --- a/roles/shiftstack/templates/shiftstackclient_pod.yml.j2 +++ b/roles/shiftstack/templates/shiftstackclient_pod.yml.j2 @@ -13,7 +13,17 @@ spec: image: {{ cifmw_shiftstack_client_pod_image }} imagePullPolicy: Always name: {{ cifmw_shiftstack_client_pod_name }} +{% if 'crc' in cifmw_openshift_kubeconfig %} resources: {} +{% else %} + resources: + requests: + memory: "12Gi" + cpu: "4" + limits: + memory: "12Gi" + cpu: "4" +{% endif %} securityContext: privileged: true terminationMessagePath: /dev/termination-log