github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/syz-cluster/workflow/triage-step/workflow-template.yaml (about)

     1  # Copyright 2025 syzkaller project authors. All rights reserved.
     2  # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
     3  
     4  apiVersion: argoproj.io/v1alpha1
     5  kind: WorkflowTemplate
     6  metadata:
     7    name: triage-step-template
     8  spec:
     9    templates:
    10      - name: triage-step
    11        retryStrategy:
    12          limit: "3"
    13          backoff:
    14            duration: "5m"
    15        securityContext:
    16          runAsUser: 10000
    17          fsGroup: 10000
    18        initContainers:
    19          - name: setup-repo
    20            image: ${IMAGE_PREFIX}triage-step:${IMAGE_TAG}
    21            imagePullPolicy: IfNotPresent
    22            command:
    23              - sh
    24              - -c
    25              - |
    26                git clone --reference /kernel-repo -c remote.origin.fetch="+refs/heads/*:refs/heads/*" /kernel-repo /workdir
    27            env:
    28              - name: GIT_DISCOVERY_ACROSS_FILESYSTEM
    29                value: "1"
    30            volumeMounts:
    31              - name: base-kernel-repo
    32                mountPath: /kernel-repo
    33                readOnly: true
    34              - name: workdir
    35                mountPath: /workdir
    36        container:
    37            image: ${IMAGE_PREFIX}triage-step:${IMAGE_TAG}
    38            imagePullPolicy: IfNotPresent
    39            command: ["/bin/triage-step"]
    40            args: [
    41              "--session", "{{workflow.parameters.session-id}}",
    42              "--repository", "/workdir",
    43              "--verdict", "/output/result.json"
    44              ]
    45            resources:
    46              requests:
    47                cpu: 1
    48                memory: 8G
    49              limits:
    50                cpu: 4
    51                memory: 16G
    52            env:
    53              - name: GIT_DISCOVERY_ACROSS_FILESYSTEM
    54                value: "1"
    55              - name: HOME # Otherwise it's failing with "warning: unable to access '/root/.config/git/attributes': Permission denied.".
    56                value: "/home/syzkaller"
    57            volumeMounts:
    58              - name: base-kernel-repo
    59                mountPath: /kernel-repo
    60                readOnly: true
    61              - name: workdir
    62                mountPath: /workdir
    63              - name: output
    64                mountPath: /output
    65        volumes:
    66          - name: base-kernel-repo
    67            persistentVolumeClaim:
    68              claimName: base-kernel-repo-pv-claim
    69          - name: workdir
    70            emptyDir: {}
    71          - name: output
    72            emptyDir: {}
    73        outputs:
    74          parameters:
    75            - name: result
    76              valueFrom:
    77                path: /output/result.json