fix(k8s): make codex-node memory resources conditional

Make the resources block for codex-node container conditional on
experiment.memory being set and non-empty. If codexMemory is not
provided in the workflow parameters or is set to an empty string,
no resource limits will be set on the pod.

Signed-off-by: Chrysostomos Nanakos <chris@include.gr>
This commit is contained in:
Chrysostomos Nanakos 2025-10-20 11:46:37 +03:00
parent 884b16d8c5
commit 8d11207e73
No known key found for this signature in database

View File

@ -47,11 +47,13 @@ spec:
imagePullPolicy: {{ include "benchmark.harness.imagePullPolicy" . }}
ports:
- containerPort: 6890
{{- if and .Values.experiment.memory (ne .Values.experiment.memory "") }}
resources:
requests:
memory: {{ .Values.experiment.memory | quote }}
limits:
memory: {{ .Values.experiment.memory | quote }}
{{- end }}
env:
- name: POD_IP
valueFrom: