907 B
907 B
Implementation Plan: Shared PVC Workspace & Git Clone
Objective
Implement a shared Persistent Volume Claim (PVC) strategy to ensure the repository is only cloned once and all parallel scanners can access the same codebase without re-downloading it.
Requirements
- Use Argo Workflows
volumeClaimTemplatesto define a temporary PVC for the workflow duration. - Create a
clone-repotask in the DAG. - The
clone-repotask should use a standard git image (e.g., Alpine/Git) to clone therepo-urlatgit-revisioninto the shared PVC mounted at/workspace. - Ensure all subsequent tasks will mount this PVC at
/workspace.
Agent Instructions
- Modify the
ClusterWorkflowTemplateto add thevolumeClaimTemplates. - Add the
clone-repotask template that executesgit clone. - Configure the DAG so the parallel scanning steps depend on the successful completion of
clone-repo.