Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.07 KB

HACK.md

File metadata and controls

49 lines (33 loc) · 1.07 KB

Running the Controller

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

make clean build 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 -z pipeline

Or

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

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

Building it locally

make clean && make build
  • This project uses Golang 1.22 and controller-gen v0.15.0.
  • The controllers create/watch Tekton objects.

Testing

Please refer to the testing docs for more information about our test levels.