Uploaded image for project: 'OpenShift GitOps'
  1. OpenShift GitOps
  2. GITOPS-961

Update kam to work with Tekton Trigger v0.12.1

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • 1.2, 1.1.1
    • None
    • kam
    • None
    • 8
    • False
    • False
    • Undefined
    • GITOPS Sprint 201

      The recent Pipelines Operator (1.4) available in OCP 4.7 has upgraded Tekton Triggers to v0.12.1.  This version of Triggers has breaking changes and kam needs to be upgrade Triggers to the same version.   Details on the breaking changes is as follow.

      The following error is observed when deploying Event Listener.

       { Error from server (BadRequest): error when creating "config/cicd/base": admission webhook "webhook.triggers.tekton.dev" denied the request: mutation failed: cannot decode incoming new object: json: unknown field "name"}}

      The issue was caused due to replacement of parameter name under the template section with ref https://github.com/tektoncd/triggers/blob/main/docs/eventlisteners.md#specifying-triggers .

       

      As part of this update, we decided to update kam dependencies to latest versions and clean up the go.mod file for kam.
      This PR includes:

      • Updates to go.mod dependencies
      • Fixing the code base due to api changes in updated dependencies

       

      Acceptance Criteria

      • upgrade kam dependencies:
        • Tekton Pipelines: v0.22.0
        • Tekton Triggers: v0.12.1
      • clean up go.mod
      • upgrade go to 1.16 in go.mod

            isequeir@redhat.com Ishita Sequeira
            isequeir@redhat.com Ishita Sequeira
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: