Compare commits
2 Commits
83d694d663
...
397e54662c
Author | SHA1 | Date |
---|---|---|
|
397e54662c | |
|
d3f583566c |
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue