Compare commits

...

2 Commits

Author SHA1 Message Date
Dustin 397e54662c fixup! bci2: Add resources argument 2025-09-25 19:13:16 -05:00
Dustin d3f583566c fixup! bci2: Add resources argument 2025-09-25 19:10:31 -05:00
1 changed files with 5 additions and 5 deletions

View File

@ -53,7 +53,7 @@ def call(args) {
} }
parallel stages parallel stages
runInPod() { runInPod {
container('buildah') { container('buildah') {
withBuildahCreds(registry) { withBuildahCreds(registry) {
if (archlist.size() > 1) { if (archlist.size() > 1) {
@ -118,10 +118,10 @@ def runInPod(args, block) {
def tmpl = readYaml(text: podTemplateYaml) def tmpl = readYaml(text: podTemplateYaml)
tmpl.spec.containers.each { c -> tmpl.spec.containers.each { c ->
c.resources = c.resources ?: [:] c.resources = c.resources ?: [:]
c.resources.requests = c.resources.requests ?: [:] c.resources.putAll([
c.resources.limits = c.resources.limits ?: [:] requests: (c.resources.requests ?: [:]) + resources,
c.resources.requests += resources limits: (c.resources.requests ?: [:]) + resources,
c.resources.limits += resources ])
} }
podTemplateYaml = writeYaml(data: tmpl, returnText: true) podTemplateYaml = writeYaml(data: tmpl, returnText: true)
echo podTemplateYaml echo podTemplateYaml