pipeline icon indicating copy to clipboard operation
pipeline copied to clipboard

Documentation in correct for pipelinerun taskRunSpecs

Open jwitrick opened this issue 7 months ago • 1 comments

Expected Behavior

Specifically this section: https://tekton.dev/docs/pipelines/compute-resources/#configure-task-level-compute-resources

The documentation does not have any information about the breaking changes to the pipelinerun schema between v1beta1 and v1.

In V1beta1 the schema for overriding task step level compute resources is:

kind: PipelineRun
spec:
  taskRunSpecs:
    - pipelineTaskName: foo
      stepOverrides:
        - name: foo 
          resources:
            requests:
              cpu: 1 
      computeResources:
        requests:
          cpu: 2

BUT in v1 the schema is:

kind: PipelineRun
spec:
  taskRunSpecs:
    - pipelineTaskName: foo
      stepSpecs:
        - name: foo 
          computeResources:
            requests:
              cpu: 1 

No where the docs is this information specified. Also (not sure if this is a bug) in each taskrunspec item I am unable to specify both stepSpecs AND computerResources. This could be a bug or a feature.. but either way its NOT documented.

jwitrick avatar May 14 '25 14:05 jwitrick

/assign

waveywaves avatar May 19 '25 09:05 waveywaves