Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 1.1 KB

File metadata and controls

43 lines (25 loc) · 1.1 KB

Development Guide

Development Prerequisites

  1. go: The language Tektoncd-pipeline-operator is built in
  2. git: For source control
  3. kubectl: For interacting with your kube cluster
  4. operator-sdk v0.17.0
  5. ko

Running Operator Locally (Development)

  1. Apply Operator CRD

    kubectl apply -f config/crds/*_crd.yaml

  2. start operator

    make local-dev

  3. Update the dependencies

    make update-deps

Running E2E Tests Locally (Development)

  1. run

    make local-test-e2e

  2. to watch resources getting created/deleted, run in a separate terminal:

    watch -d -n 1 kubectl get all -n tekton-pipelines

KO based development workflow

  1. Set KO_DOCKER_ENV environment variable (ko#usage)

  2. Set KO_DATA_PATH=${GOPATH}/src/github.com/tektoncd/operator/cmd/manager/kodata

  3. run make ko-apply