k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/config/prow/cluster/prowjob-crd/legacy/prowjob-schemaless_customresourcedefinition.yaml (about)

     1  apiVersion: apiextensions.k8s.io/v1
     2  kind: CustomResourceDefinition
     3  metadata:
     4    name: prowjobs.prow.k8s.io
     5    annotations:
     6      "api-approved.kubernetes.io": "https://github.com/kubernetes/test-infra/pull/8669"
     7  spec:
     8    group: prow.k8s.io
     9    names:
    10      kind: ProwJob
    11      singular: prowjob
    12      plural: prowjobs
    13    scope: Namespaced
    14    versions:
    15    - name: v1
    16      served: true
    17      storage: true
    18      schema:
    19        openAPIV3Schema:
    20          type: object
    21          properties:
    22            spec:
    23              type: object
    24              x-kubernetes-preserve-unknown-fields: true
    25              properties:
    26                max_concurrency:
    27                  type: integer
    28                  minimum: 0
    29                type:
    30                  type: string
    31                  enum:
    32                  - "presubmit"
    33                  - "postsubmit"
    34                  - "periodic"
    35                  - "batch"
    36            status:
    37              type: object
    38              x-kubernetes-preserve-unknown-fields: true
    39              properties:
    40                state:
    41                  type: string
    42                  enum:
    43                  - "scheduling"
    44                  - "triggered"
    45                  - "pending"
    46                  - "success"
    47                  - "failure"
    48                  - "aborted"
    49                  - "error"
    50              anyOf:
    51              - not:
    52                  properties:
    53                    state:
    54                      enum:
    55                      - "success"
    56                      - "failure"
    57                      - "error"
    58              - required:
    59                - completionTime
    60      additionalPrinterColumns:
    61      - name: Job
    62        type: string
    63        description: The name of the job being run.
    64        jsonPath: .spec.job
    65      - name: BuildId
    66        type: string
    67        description: The ID of the job being run.
    68        jsonPath: .status.build_id
    69      - name: Type
    70        type: string
    71        description: The type of job being run.
    72        jsonPath: .spec.type
    73      - name: Org
    74        type: string
    75        description: The org for which the job is running.
    76        jsonPath: .spec.refs.org
    77      - name: Repo
    78        type: string
    79        description: The repo for which the job is running.
    80        jsonPath: .spec.refs.repo
    81      - name: Pulls
    82        type: string
    83        description: The pulls for which the job is running.
    84        jsonPath: ".spec.refs.pulls[*].number"
    85      - name: StartTime
    86        type: date
    87        description: When the job started running.
    88        jsonPath: .status.startTime
    89      - name: CompletionTime
    90        type: date
    91        description: When the job finished running.
    92        jsonPath: .status.completionTime
    93      - name: State
    94        description: The state of the job.
    95        type: string
    96        jsonPath: .status.state