diff --git a/vars/buildContainerImage2.groovy b/vars/buildContainerImage2.groovy index 393c430..0186d7b 100644 --- a/vars/buildContainerImage2.groovy +++ b/vars/buildContainerImage2.groovy @@ -120,7 +120,7 @@ def runInPod(args, block) { c.resources = c.resources ?: [:] c.resources.putAll([ requests: (c.resources.requests ?: [:]) + resources, - limits: (c.resources.requests ?: [:]) + resources, + limits: (c.resources.limits ?: [:]) + resources, ]) } podTemplateYaml = writeYaml(data: tmpl, returnText: true)