Skip to content

Commit 6aa490a

Browse files
committed
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.
1 parent 6a17e3c commit 6aa490a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

roles/shiftstack/templates/shiftstackclient_pod.yml.j2

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,17 @@ spec:
1313
image: {{ cifmw_shiftstack_client_pod_image }}
1414
imagePullPolicy: Always
1515
name: {{ cifmw_shiftstack_client_pod_name }}
16+
{% if 'crc' in cifmw_openshift_kubeconfig %}
1617
resources: {}
18+
{% else %}
19+
resources:
20+
requests:
21+
memory: "4Gi"
22+
cpu: "4000m"
23+
limits:
24+
memory: "4Gi"
25+
cpu: "4000m"
26+
{% endif %}
1727
securityContext:
1828
privileged: true
1929
terminationMessagePath: /dev/termination-log

0 commit comments

Comments
 (0)