Bug 1876515

Summary: Pipeline with taskSpec breaks UI
Product: OpenShift Container Platform Reporter: Karthik Jeeyar <kjeeyar>
Component: Dev ConsoleAssignee: Karthik Jeeyar <kjeeyar>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.6CC: aos-bugs, nmukherj, spathak
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1915013 (view as bug list) Environment:
Last Closed: 2020-10-27 16:38:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1879247    
Attachments:
Description Flags
Pipeline with taskSpec does not breaks UI none

Description Karthik Jeeyar 2020-09-07 11:37:37 UTC
Description of problem:
When user creates a Tekton pipeline with taskSpec and tries to open it in Pipelines page, the page shows "Oh no! Something went wrong."



Version-Release number of selected component (if applicable):

Pipelines operator 1.0 or 1.1 on OCP 4.5 or 4.6

How reproducible:
Always


Steps to Reproduce:
1.click Import Yaml  in top-right corner
2.paste the following code there

###
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
  name: devconsole
spec:
  tasks:
  - name: use-secret
    taskSpec:
      steps:
      - name: greet
        image: registry.access.redhat.com/ubi8/ubi
        script: |
          #!/usr/bin/env bash
          echo "Hello world!"
 ###

Actual results:
Page shows an error with description "t.taskRef is undefined"

Expected results:
Page with pipeline details is displayed

Comment 2 spathak@redhat.com 2020-09-20 21:33:12 UTC
Created attachment 1715474 [details]
Pipeline with taskSpec does not breaks UI

Comment 3 spathak@redhat.com 2020-09-20 21:34:13 UTC
Verify on build version: 4.6.0-0.ci-2020-09-19-115132
Browser version: Chrome 84

Comment 6 errata-xmlrpc 2020-10-27 16:38:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.6 GA Images), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4196