Uploaded image for project: 'OpenShift Dev Console'
  1. OpenShift Dev Console
  2. ODC-5350

Event listener with triggerRef crashes the console

XMLWordPrintable

    • High

      Description of problem :   

      Event listeners has an optional `triggerRef` field which is not compatible in UI code causes the UI to crash

      Prerequisites (if any, like setup, operators/versions):     

      Openshift Pipelines operator 1.2.2 (ocp-4.6)

      Steps to Reproduce

      1. Create an eventlistener with this yaml:
        apiVersion: triggers.tekton.dev/v1alpha1
        kind: EventListener
        metadata:
          name: vote-app
        spec:
          serviceAccountName: pipeline
          triggers:
            - triggerRef: vote-app
        

        Source: https://github.com/mancubus77/tekton-maybeuibug/tree/main/tekton

      Actual results: 

      UI crashes with a `name of undefined` error in the browser console

      Expected results: 

      UI should handle the new types and should not break 

      Reproducibility (Always/Intermittent/Only Once): 

      Always

      Additional info: 

      Update the eventListener types based on the triggers doc
       

            karthik.jk Karthik Jeeyar
            karthik.jk Karthik Jeeyar
            Gajanan More Gajanan More (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: