Skip to content

Documentation in correct for pipelinerun taskRunSpecs #8770

@jwitrick

Description

@jwitrick

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.

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.kind/documentationCategorizes issue or PR as related to documentation.

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions