Skip to content

Latest commit

 

History

History

chart

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Tekton Operator Helm Chart

This Helm chart installs the Tekton Operator into your Kubernetes (v1.16+) or Openshift cluster (v4.3+).

TL;DR

git clone https://github.com/tektoncd/operator.git
helm install tekton-operator \
  -n tekton-operator \
  --create-namespace \
  --set installCRDs=true \
  ./operator/chart

# or install the Openshift flavor:
helm install tekton-operator \
  -n openshift-operators \
  --set openshift.enabled=true \
  --set installCRDs=true \
  ./operator/chart

Introduction

The Tekton operator is installed into the tekton-operator namespace for Kubernetes clusters and into openshift-operators for Openshift clusters (openshift.enabled=true).

The Tekton Custom Resource Definitions (CRDs) can either be installed manually (the recommended approach, see the Tekton Operator Releases page) or as part of the Helm chart (installCRDs=true). Installing the CRDs as part of the Helm chart is not recommended for production setups, since uninstalling the Helm chart will also uninstall the CRDs and subsequently delete any remaining CRs. The CRDs allow you to configure individual parts of your Tekton setup:

After the installation of the Tekton-operater chart, you can start inject the Custom Resources (CRs) into your cluster. The Tekton operator will then automatically start installing the components. Please see the documentation of each CR for details.

Uninstalling

Before removing the Tekton operator from your cluster, you should first make sure that there are no instances of resources managed by the operator left:

kubectl get TektonConfig,TektonPipeline,TektonDashboard,TektonInstallerSet,TektonResults,TektonTrigger,TektonAddon --all-namespaces

Now you can use Helm to uninstall the Tekton operator:

# for Kubernetes:
helm uninstall --namespace tekton-operator tekton-operator --wait
kubectl delete namespace tekton-operator
# for Openshift:
helm uninstall --namespace openshift-operators --wait

Important: if you installed the CRDs with the Helm chart (by setting installCRDs=true), the CRDs will be removed as well: this means any remaining Tekton resources (e.g. Tekton Pipelines) in the cluster will be deleted!

If you installed the CRDs manually, you can use the following command to remove them (this will remove all Tekton resources from your cluster):

kubectl delete crd TektonConfig TektonPipeline TektonDashboard TektonInstallerSet TektonResults TektonTrigger TektonAddon --ignore-not-found