From 2f158c6b0a75831eb5f2f588eb7f603fb875319b Mon Sep 17 00:00:00 2001 From: jenkins Date: Sun, 4 Oct 2026 05:25:09 -0500 Subject: [PATCH] ci: add disposable Longhorn scratch storage for builds --- infrastructure/core/kustomization.yaml | 1 + .../core/storageclass-ci-scratch.yaml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 infrastructure/core/storageclass-ci-scratch.yaml diff --git a/infrastructure/core/kustomization.yaml b/infrastructure/core/kustomization.yaml index cbc9d5be..bd0e95bd 100644 --- a/infrastructure/core/kustomization.yaml +++ b/infrastructure/core/kustomization.yaml @@ -3,6 +3,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - node-maintenance.yaml + - storageclass-ci-scratch.yaml - ../modules/base - ../modules/profiles/atlas-ha - node-prefer-noschedule-serviceaccount.yaml diff --git a/infrastructure/core/storageclass-ci-scratch.yaml b/infrastructure/core/storageclass-ci-scratch.yaml new file mode 100644 index 00000000..19ba8b71 --- /dev/null +++ b/infrastructure/core/storageclass-ci-scratch.yaml @@ -0,0 +1,17 @@ +# infrastructure/core/storageclass-ci-scratch.yaml +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: ci-scratch +provisioner: driver.longhorn.io +reclaimPolicy: Delete +volumeBindingMode: Immediate +allowVolumeExpansion: true +parameters: + diskSelector: astreae + numberOfReplicas: "1" + staleReplicaTimeout: "30" + fsType: ext4 + dataLocality: disabled +# Reproducible build scratch only. Jenkins removes the PVC with its agent pod. +# A lost scratch replica requires a fresh build, never an application restore.