Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.35 KB

HACK.md

File metadata and controls

59 lines (40 loc) · 1.35 KB

Running the Operator

Assuming you are logged in to an OpenShift/Kubernetes cluster, run

make clean && make build && make local

If the pipeline service account isn't already created, here are the steps to create the same:

oc create serviceaccount pipeline
oc adm policy add-scc-to-user privileged -z pipeline
oc adm policy add-role-to-user edit -z pipeline

If your Build's outputImage is to be pushed to the OpenShift internal registry, ensure the pipeline service account has the required role:

oc policy add-role-to-user registry-editor pipeline

Or

oc policy add-role-to-user  system:image-builder  pipeline

In the near future, the above would be setup by the operator.

Building it locally

make clean && make build
  • This project uses Golang 1.13+ and operator-sdk 1.15.1.
  • The controllers create/watch Tekton objects.

Unit tests

make test

End-to-end tests

To run all strategies except buildpacks-v3, execute

operator-sdk test local ./test/e2e --up-local --namespace build-examples

To run all strategies including buildpacks-v3, setup your Quay credentials and execute

TEST_IMAGE_REPO=quay.io/shbose/nodejs-ex:latest TEST_IMAGE_REPO_SECRET=regcred  operator-sdk test local ./test/e2e --up-local --namespace build-examples