Compare commits
No commits in common. "397e54662c7797f3dda5b3bee3fdfbfd7f9f137a" and "83d694d6636997f225add134bb494ef3e9ad5e8c" have entirely different histories.
397e54662c
...
83d694d663
|
@ -53,7 +53,7 @@ def call(args) {
|
|||
}
|
||||
parallel stages
|
||||
|
||||
runInPod {
|
||||
runInPod() {
|
||||
container('buildah') {
|
||||
withBuildahCreds(registry) {
|
||||
if (archlist.size() > 1) {
|
||||
|
@ -118,10 +118,10 @@ def runInPod(args, block) {
|
|||
def tmpl = readYaml(text: podTemplateYaml)
|
||||
tmpl.spec.containers.each { c ->
|
||||
c.resources = c.resources ?: [:]
|
||||
c.resources.putAll([
|
||||
requests: (c.resources.requests ?: [:]) + resources,
|
||||
limits: (c.resources.requests ?: [:]) + resources,
|
||||
])
|
||||
c.resources.requests = c.resources.requests ?: [:]
|
||||
c.resources.limits = c.resources.limits ?: [:]
|
||||
c.resources.requests += resources
|
||||
c.resources.limits += resources
|
||||
}
|
||||
podTemplateYaml = writeYaml(data: tmpl, returnText: true)
|
||||
echo podTemplateYaml
|
||||
|
|
Loading…
Reference in New Issue