From 3c03e488295f615983fc260c17cbc03576e7ebd3 Mon Sep 17 00:00:00 2001 From: jgrusewski Date: Thu, 5 Mar 2026 01:49:37 +0100 Subject: [PATCH] fix(ci): add volumes to ci-pipeline for compile-training templateRef MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When using templateRef, Argo only borrows the template definition — not spec-level volumes or volumeClaimTemplates from the source WorkflowTemplate. Add workspace VCT, sccache PVC, and git-ssh-key secret at the ci-pipeline spec level so compile-training's sub-templates can access them. Co-Authored-By: Claude Opus 4.6 --- infra/k8s/argo/ci-pipeline-template.yaml | 26 ++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/infra/k8s/argo/ci-pipeline-template.yaml b/infra/k8s/argo/ci-pipeline-template.yaml index 0e4e6dd37..bd6291bd7 100644 --- a/infra/k8s/argo/ci-pipeline-template.yaml +++ b/infra/k8s/argo/ci-pipeline-template.yaml @@ -16,6 +16,24 @@ spec: app.kubernetes.io/part-of: foxhunt ttlStrategy: secondsAfterCompletion: 3600 + # Volumes for compile-training (called via templateRef — spec-level volumes don't carry over) + volumeClaimTemplates: + - metadata: + name: workspace + spec: + accessModes: [ReadWriteOnce] + resources: + requests: + storage: 20Gi + storageClassName: scw-bssd + volumes: + - name: sccache + persistentVolumeClaim: + claimName: sccache-pvc + - name: git-ssh-key + secret: + secretName: argo-git-ssh-key + defaultMode: 256 arguments: parameters: - name: commit-sha @@ -321,14 +339,6 @@ spec: parameters: - name: service-package - name: commit-sha - volumes: - - name: sccache - persistentVolumeClaim: - claimName: sccache-pvc - - name: git-ssh-key - secret: - secretName: argo-git-ssh-key - defaultMode: 256 container: image: rg.fr-par.scw.cloud/foxhunt-ci/ci-builder:latest command: ["/bin/sh", "-c"]