redhat-developer / kam

GitOps Application Manager: An opinionated CLI that generates the Kubernetes resources for managing your Tekton-based CI manifests, ArgoCD-based CD manifests and Application manifests in Git.
Apache License 2.0
145 stars 83 forks source link

Upgrade Tekton Pipeline and Triggers to work with Pipelines Operator 1.3 #179

Closed wtam2018 closed 3 years ago

wtam2018 commented 3 years ago

What type of PR is this?

/kind code-refactoring

What does this PR do / why we need it:

Tekton Triggers API changes in Pipelines Operator. We need to make code change to use the new APIs.

Have you updated the necessary documentation?

Which issue(s) this PR fixes:

Fixes #?

How to test changes / Special notes to the reviewer:

  1. Install GitOps Operator 1.0.1 in OCP 4.7
  2. run oc adm policy add-cluster-role-to-user cluster-admin system:serviceaccount:openshift-gitops:argocd-cluster-argocd-application-controller
  3. oc new-project cicd
  4. instance Sealed Secret Operator in cicd namespace
  5. Create new instance sealedsecretcontroller in cicd namespace
  6. make sure github.com/wtam2018/gitops does not exist
  7. kam bootstrap --push-to-git --interactive
  8. accept defaults
  9. enter gitops repo https://github.com/wtam2018/gitops.git
  10. enter service repo https://github.com/wtam2018/taxi.git
  11. make repo public https://github.com/wtam2018/gitops.git
  12. oc apply -k config/argocd/
  13. login in to argocd ui.
  14. Confirm that app-cicd (and other apps) are healthy and sync'ed.
openshift-ci-robot commented 3 years ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: To complete the pull request process, please assign wtam2018 after the PR has been reviewed. You can assign the PR to them by writing /assign @wtam2018 in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/redhat-developer/kam/blob/master/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment