ci: protect reservation pods and preserve review lane names during reload

This commit is contained in:
Brad Stein 2026-12-05 10:05:59 -06:00
parent a17f100978
commit 62ffc5663a
4 changed files with 13 additions and 1 deletions

View File

@ -6,6 +6,7 @@ resources:
- certificates.yaml
- admission-service.yaml
- webhooks.yaml
- priority.yaml
- reservations.yaml
configMapGenerator:
- name: ci-placement-code

View File

@ -0,0 +1,9 @@
# infrastructure/core/ci-capacity/priority.yaml
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: ci-reservation
value: 1000000000
globalDefault: false
preemptionPolicy: Never
description: Keeps the scheduler reservation above ordinary tenants without evicting existing pods.

View File

@ -20,6 +20,7 @@ spec:
atlas.bstein.dev/ci-arm64-eligible: 'true'
spec:
automountServiceAccountToken: false
priorityClassName: ci-reservation
nodeName: titan-07
affinity:
podAntiAffinity:
@ -106,6 +107,7 @@ spec:
atlas.bstein.dev/ci-amd64-eligible: 'true'
spec:
automountServiceAccountToken: false
priorityClassName: ci-reservation
nodeName: titan-22
affinity:
podAntiAffinity:

View File

@ -28,7 +28,7 @@ data:
- script: |
['pair', 'arm64', 'amd64'].each { lane ->
def pair = lane == 'pair'
pipelineJob("lesavka-compile-review-${lane}") {
pipelineJob('lesavka-compile-review-' + lane) {
description('Isolated 1.4.19 pipeline review. Exact-source native build evidence only.')
quietPeriod(0)
logRotator {