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.
make clean && make build
- This project uses Golang 1.22 and controller-gen v0.14.0.
- The controllers create/watch Tekton objects.
Please refer to the testing docs for more information about our test levels.