taikun.cloud

Documentation

Tekton Operators

Operator

Manage Tekton CI/CD Building Blocks

Tekton Operator

Tekton Operator is a Kubernetes extension that installs, upgrades and manages TektonCD PipelinesDashboards, and Triggers (and other components) on any Kubernetes Cluster.

Tekton Operator entities

Tekton Operator defines the following entities:

EntityDescription
TektonConfigConfigure Tekton components to be installed and managed.
TektonPipelineConfigure the Tekton Pipeline component to be installed and managed.
TektonTriggerConfigure the Tekton Trigger component to be installed and managed.
TektonDashboardConfigure the Tekton Dashboard component to be installed and managed.
TektonResultConfigure the Tekton Result component to be installed and managed.
TektonChainConfigure the Tekton Chain component to be installed and managed.
OpenShiftPipelinesAsCodeConfigure the Pipelines as Code component to be installed and managed.
TektonAddonConfigure addons to be installed and managed.

Getting started

To install an Operator, there are multiple ways

  • Install from Operator HubYou. You can find the instructions here. The lifecycle will be managed by Operator Lifecycle Manager (OLM).
  • Install using the release file. The latest version’s release file can be found here. In this case, you will have to manage the operator’s lifecycle.
  • Install from code. You can clone the repositories and install the Operator. You can find the instructions here

After installing the Operator, install the required Tekton Component, such as Tekton Pipeline and Tekton Triggers.

Create an instance of TektonConfig, which will create the required components. You can find more details and the available configuration in TektonConfig.

NOTE: TektonResult and TektonChain are optional components and are not currently installed through TektonConfig. The installation steps are in their docs.

Understanding Tekton Operator

Each Tekton Component has a Custom Resource that installs and manages the component.

TektonConfig is a top-level Custom Resource that creates other components.

So, the user needs to create TektonConfig with the required configurations, and it will install the necessary components.

More about the Resources and their available configurations are found in their docs.

To understand how Tekton Operator works, you can find the details here

Was this article helpful?