From 83d694d6636997f225add134bb494ef3e9ad5e8c Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Thu, 25 Sep 2025 19:07:09 -0500 Subject: [PATCH] fixup! bci2: Add resources argument --- vars/buildContainerImage2.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vars/buildContainerImage2.groovy b/vars/buildContainerImage2.groovy index 71c8a03..d7d5e3b 100644 --- a/vars/buildContainerImage2.groovy +++ b/vars/buildContainerImage2.groovy @@ -117,7 +117,9 @@ def runInPod(args, block) { if (resources) { def tmpl = readYaml(text: podTemplateYaml) tmpl.spec.containers.each { c -> - c.resources = c.resources ?: [requests: [:], limits: [:]] + c.resources = c.resources ?: [:] + c.resources.requests = c.resources.requests ?: [:] + c.resources.limits = c.resources.limits ?: [:] c.resources.requests += resources c.resources.limits += resources }