From 8d11207e73933ea374b7356781cc0ae98310ba8d Mon Sep 17 00:00:00 2001 From: Chrysostomos Nanakos Date: Mon, 20 Oct 2025 11:46:37 +0300 Subject: [PATCH] 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 --- k8s/charts/codex/templates/codex-statefulset.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/k8s/charts/codex/templates/codex-statefulset.yaml b/k8s/charts/codex/templates/codex-statefulset.yaml index 99e2988..a12b6e6 100644 --- a/k8s/charts/codex/templates/codex-statefulset.yaml +++ b/k8s/charts/codex/templates/codex-statefulset.yaml @@ -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: