# Packages
# README
Tekton Tasks Operator
Tekton Tasks Operator is Go operator which takes care about deploying Kubevirt tekton tasks and example pipelines.
Note: TTO will deploy its resources only if
spec.featureGates.deployTektonTaskResources in TTO CR is
set to true. If spec.featureGates.deployTektonTaskResources
is once set
to true, TTO operator will not delete any cluster tasks or pipeline
examples if it is reverted back to false. To delete all deployed resources,
delete TTO CR (oc delete tektontasks <nameOfTTOCR>
).
Prerequisites
To install all prerequisities, just run:
./scripts/deploy-resources.sh
Installation
The Tekton Tasks Operator
can run on both Kubernetes and OpenShift. However to be able to
use all tasks, we recommend to use OpenShift (due to support for templates).
Building
The Make will try to install kustomize, however if it is already installed it will not reinstall it. In case of an error, make sure you are using at least v3 of kustomize, available here: https://kustomize.io/
To build the container image run:
make container-build
To upload the image to the default repository run:
make container-push
Deploy
After the image is pushed to the repository, manifests and the operator can be deployed using:
make deploy
And deploy TTO CR
oc create -f config/samples/tektontasks_v1alpha1_tektontasks.yaml
Tekton tasks operator does not deploy tekton tasks and example pipelines by default.
User has to update spec.featureGates.deployTektonTaskResources
in TTO CR to true to trigger reconciliation.
Testing
e2e tests
make functest
unit tests
make unittest