Uploaded image for project: 'Docs for Red Hat Developers'
  1. Docs for Red Hat Developers
  2. RHDEVDOCS-7256

Bad indentation in code snippet of Override individual TaskRun timeouts in a PipelineRun

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • Pipelines 1.21
    • OpenShift Pipelines
    • None
    • Hide

      While creating a PipelineRun with the code snippet provided in the document, the following error occurs:

      Show
      While creating a PipelineRun with the code snippet provided in the document, the following error occurs:
    • ---
    • ---

      Proper indentation is required in the PipelineRun YAML to create the resource successfully; therefore, the example in documentation [1] should be corrected as follows:

      apiVersion: tekton.dev/v1
      kind: PipelineRun
      metadata:
        name: example-with-timeout-override
      spec:
        pipelineRef:
          name: my-pipeline
        timeouts:
          pipeline: "2h"
        taskRunSpecs:
          - pipelineTaskName: build-task
            timeout: "30m"
          - pipelineTaskName: test-task
            timeout: "1h"

      [1] https://docs.redhat.com/en/documentation/red_hat_openshift_pipelines/1.21/html/release_notes/op-release-notes-1-21#op-release-notes-1-21-0_op-release-notes-1-21:~:text=Override%20individual%20TaskRun%20timeouts%20in%20a%20PipelineRun

              Unassigned Unassigned
              rhn-support-arayadav Aradhana .
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: