Skip to content

Commit

Permalink
fix node pinning, new lorax path
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilHanlon committed May 4, 2024
1 parent 7811415 commit 439f1f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iso/empanadas/empanadas/scripts/launch_builds.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
results = parser.parse_args()
rlvars = rldict[results.release]
major = rlvars['major']
minor = rlvars['minor']

EXTARCH=["s390x", "ppc64le"]
EKSARCH=["amd64", "arm64"]
Expand All @@ -42,7 +43,7 @@ def run():
out = ""
for architecture in arches:
copy_command = (f"aws s3 cp --recursive --exclude=* --include=lorax* "
f"/var/lib/mock/rocky-{ major }-$(uname -m)/root/builddir/ "
f"/var/lib/mock/rocky-{ major }.{ minor }-$(uname -m)/root/builddir/ "
f"s3://resf-empanadas/buildiso-{ major }-{ architecture }/{ buildstamp.strftime('%s') }/"
)
out += job_template.render(
Expand All @@ -54,6 +55,7 @@ def run():
jobname="buildiso",
namespace="empanadas",
major=major,
minor=minor,
restartPolicy="Never",
)

Expand Down
2 changes: 2 additions & 0 deletions iso/empanadas/empanadas/templates/kube/Job.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ spec:
key: peridot.rockylinux.org/workflow-tolerates-arch
operator: Equal
value: {{ architecture }}
nodeSelector:
kubernetes.io/arch: {{ architecture }}
restartPolicy: {{ restartPolicy }}
volumes:
- name: resolv-conf
Expand Down

0 comments on commit 439f1f7

Please sign in to comment.