---
title: Tekton
description: Monitoring of Tekton pipelines and PipelineRuns on Kubernetes in Pipedash with a kubeconfig, namespace discovery, trigger params, step logs and controller health.
---

The Tekton plugin (`tekton`) monitors Tekton pipelines on a Kubernetes cluster. It shows the latest PipelineRun of each pipeline, loads run history, creates new PipelineRuns and deletes them on cancel. It also reads TaskRun step logs and separate sidecar logs inside Pipedash.

## Requirements

The plugin authenticates with the kubeconfig credentials instead of an API token. It reads the kubeconfig from a file path or from pasted content. No field is required.

In `all` namespace mode, the kubeconfig credentials must be able to list namespaces cluster-wide. If validation returns `403 Forbidden`, `custom` mode with named namespaces avoids the error. `custom` is the mode for users without admin permissions and for OpenShift.

On iOS and Android, the kubeconfig must use a token or a client certificate. A user that authenticates through an exec credential plugin, such as `aws`, `gke-gcloud-auth-plugin` or `kubelogin`, fails with an error. Desktop builds have no such limit.

Controller health needs one optional permission. See [Controller health](#controller-health). Run logs need `get` on `pods` and `pods/log` in each monitored namespace. See [Run logs](#run-logs). The "Check permissions" button tests only the controller permission.

The Kubernetes account also needs these rights in each monitored namespace:

| Resource | API group | Verbs | Used for |
|---|---|---|---|
| `pipelines` | `tekton.dev` | `list` | Discovery and monitoring |
| `pipelines` | `tekton.dev` | `get` | Trigger parameters and creating a run |
| `pipelineruns` | `tekton.dev` | `list` | Latest run, history, run details and finding the run to cancel |
| `pipelineruns` | `tekton.dev` | `get` | Run-log discovery and reads |
| `pipelineruns` | `tekton.dev` | `create` | Trigger |
| `pipelineruns` | `tekton.dev` | `delete` | Cancel |
| `taskruns` | `tekton.dev` | `list` and `get` | Run-log discovery and reads |
| `pods` and `pods/log` | Core API group | `get` | Step and sidecar logs |

The "Check permissions" button does not test these rights. It tests only the optional controller-health permission.

## Configuration

<Screenshot src="provider-tekton" variant="dialog" alt="Add provider dialog with Tekton CD selected and its credential fields" caption="Tekton reads the kubeconfig, context and namespace mode. No token is needed." />

| Key | Type | Required | Default | Description |
|---|---|---|---|---|
| `kubeconfig_path` | Text | No | `$KUBECONFIG` if set, else `~/.kube/config` | Path to the Kubernetes config file or files. `:` separates several paths on Unix and `;` on Windows. Ignored when "Kubeconfig Content" is set. |
| `token` | Text area | No | None | "Kubeconfig Content". The kubeconfig YAML pasted into the form, for devices without a kubeconfig file. It replaces the path. Pipedash stores it with the other credentials. |
| `context` | Select | No | None | A context from the kubeconfig. Empty uses the current context. |
| `namespace_mode` | Select | No | `all` | How to find namespaces with Tekton pipelines. Options are `all` and `custom`. |
| `namespaces` | Text | No | None | Comma-separated namespaces to monitor, for example `default,prod,staging`. Required when the mode is `custom`. |
| `tekton_namespace` | Text | No | `tekton-pipelines` | Namespace where the Tekton controller and webhook run. Used for controller health only. |
| `status_page_url` | Text | No | None | `https` address of a Statuspage site for this instance. Pipedash reads `/api/v2/summary.json` from it. |

Namespace names use lowercase letters, numbers and hyphens, at most 63 characters each.

In the TOML file, `token` sits in the provider table and holds the kubeconfig content. The config table also takes `selected_items`, described under [Pipeline discovery](#pipeline-discovery).

A `status_page_url` that is not an `https` URL without credentials, query or fragment fails the provider setup. Plain `http` works only for `127.0.0.1` and `[::1]`. See [provider health](/docs/features/provider-health).

## Cluster connection

Tekton has no base URL. The kubeconfig supplies the cluster endpoint and credentials, and `context` picks which cluster entry to use. Several kubeconfig paths merge into one config, and the first current context wins.

Paths expand `~` and environment variables. Pipedash skips files that do not exist or cannot be read as kubeconfig. If no readable file remains, it reports `No valid kubeconfig files found`.

Nonempty pasted content takes precedence over the paths. Invalid pasted content fails with `The pasted kubeconfig content is not valid kubeconfig YAML`. The context picker sorts context names and removes duplicates. A kubeconfig without contexts fails with `No contexts found in kubeconfig: <source>`, where the source is the file list or `pasted kubeconfig content`.

The Kubernetes client makes its own connections. The HTTP proxy from the general settings does not reach Tekton.

## Pipeline discovery

Namespaces come from `namespace_mode`. In `all` mode, Pipedash lists all namespaces and keeps those that contain Tekton pipelines. In `custom` mode, it uses the names in `namespaces`. Validation fails with a hint when it finds no pipelines.

The picker shows the namespace as the organization. The description is the `description` annotation of the pipeline, or `namespace/pipeline` when the annotation is missing. Search matches name, ID and description.

`selected_items` is a comma-separated list of `namespace__pipeline` entries, for example `prod__build,prod__deploy`. With entries set, Pipedash reads only the namespaces in them and ignores `namespace_mode`. Without it, Pipedash monitors every pipeline in the namespaces from the mode.

Pipedash shows the newest PipelineRun of each pipeline by creation time. A not-found response when listing a pipeline's runs leaves that pipeline visible as `pending`, without a latest run. Any other error fails the refresh.

## Run history

Pipedash lists PipelineRuns with the label `tekton.dev/pipeline=<pipeline>`. It sorts them by creation time, newest first, and applies the history limit after reading the list. The plugin makes one list request and does not follow Kubernetes continuation pages.

History depends on the PipelineRuns that remain in the cluster. Run details also read this list and find the run by its Pipedash run number.

## Trigger parameters

Pipedash reads the `params` of the Pipeline. Each one becomes a String field named after the param.

| Pipeline param | Trigger field |
|---|---|
| Type `string` or no type | String, with the param's default when it is a string |
| Type `array` | String, with the default rendered as JSON |
| Any other type | String, no default |

A field is required when the param has no default. On trigger, Pipedash creates a `tekton.dev/v1` PipelineRun named `<pipeline>-<unix timestamp>` with these values as params. The run carries the annotation `tekton.dev/triggeredBy: pipedash`, so the actor shows as `pipedash`.

Every workspace of the Pipeline that is not optional gets an `emptyDir` binding. Pipedash binds no other workspace type and leaves optional workspaces unbound.

## Cancel

Cancel deletes the PipelineRun from the cluster. Pipedash finds it among the runs of the pipeline by run number.

The run number combines the creation time in seconds with a part of the run UID. If two runs share a number, cancel fails with a message that names both runs and asks for `kubectl`. Showing the details of such a run fails the same way. A PipelineRun that `tkn`, the Tekton Dashboard or a `spec.status` patch cancelled shows as `cancelled`.

## Controller health

Pipedash reads the Deployments `tekton-pipelines-controller` and `tekton-pipelines-webhook` in `tekton_namespace`. It warns when one of them is scaled to zero, not running, not available or only partly available. The warning shows the replica count, for example `1/2 replicas available`.

This check needs the permission "Read controller Deployments". It is `get` on `deployments.apps` for both names in that namespace. The permission is optional. Without it, controller health is unavailable and the rest of the plugin keeps working. The "Check permissions" button of the add provider dialog tests it.

## Run logs

The Logs tab of the run details lists the TaskRuns of the PipelineRun as jobs, with the steps of each TaskRun below it. The [Run logs](/docs/features/run-logs) page covers the viewer.

Pipedash takes the TaskRuns from `status.childReferences` of the PipelineRun. It lists the references of kind `TaskRun` and skips other kinds such as `CustomRun`. For a PipelineRun without child references, it reads the older `status.taskRuns` map. A job is named after the pipeline task, or after the TaskRun when the pipeline task is empty. A fresh list omits TaskRuns that no longer exist in the cluster. For a finished run with unchanged status and completion time, Pipedash keeps its saved log tree and downloaded logs. This also applies when Pipedash updates the saved tree to add sidecar entries. Logs that were not downloaded still need the TaskRun and pod.

The status of a job follows the `Succeeded` condition of the TaskRun, with the rules of the [status mapping](#status-mapping). A step shows `success` when its container ended with exit code 0 and `failed` for another exit code. It shows `running` while it runs and `pending` before it starts. It shows `skipped` when Tekton gives the termination reason `Skipped`.

Pipedash reads the pod of the TaskRun and the log of each step container that has started, in step order. Each step starts with a line `Step <name>`, which makes it a section of the log. A step that has not started is left out. Pipedash reads at most the last 10,000 lines of a step. A step that hits the limit ends with the warning "Pipedash reads at most the last 10000 lines of a step, so older lines may be missing".

Sidecars have separate entries named "Sidecar: `<name>`" under their TaskRun. Selecting the TaskRun reads its steps only. Selecting a sidecar reads that container alone.

A sidecar log starts with `Sidecar <name>`. Its status follows the same container-state rules as a step. Pipedash reads at most the last 10,000 lines of a sidecar. A sidecar that reaches this limit ends with the warning "Pipedash reads at most the last 10000 lines of a sidecar, so older lines may be missing".

Running sidecars use the same live updates and resume rules as running steps.

<Screenshot src="run-logs-tekton-sidecar" alt="Tekton run logs with a separate database sidecar entry" caption="TaskRun logs contain steps. Sidecars open separately." />

**Live updates:** A running TaskRun shows its log as it grows, with the marker "Live". A pending TaskRun has no log yet. A finished TaskRun is read once. While a TaskRun runs, Pipedash reads only the new lines, about every 2 seconds. It starts over with the whole log when the pod, a step container or the log itself changed, for example after a container restart. A running step that already has 10,000 lines cannot be resumed. Pipedash then reads its last lines again about every 10 seconds.

**Limits and errors:**

- A step log read stops with `Log download stalled for 60 seconds` when no data arrives for 60 seconds. It stops with `Pod log download timed out after 900 seconds` when one step takes 15 minutes.
- A pod that does not exist anymore fails with "The pod `<pod>` of this TaskRun no longer exists".
- A TaskRun that never got a pod fails with "TaskRun `<name>` has no pod", followed by the message of its `Succeeded` condition when it has one.
- A TaskRun that the PipelineRun does not list fails with "PipelineRun `<name>` has no TaskRun `<name>`".

## TOML example

No `token` is needed when the kubeconfig comes from a file. Without `selected_items`, Pipedash monitors every pipeline in the namespaces from the configured mode.

```toml
[providers.tekton-prod]
name = "Tekton Prod"
type = "tekton"
refresh_interval = 30

[providers.tekton-prod.config]
kubeconfig_path = "~/.kube/config"
context = "prod-cluster"
namespace_mode = "custom"
namespaces = "default,prod,staging"
```

## Status mapping

Pipedash reads the `Succeeded` condition of the PipelineRun.

| Pipedash status | Tekton state |
|---|---|
| `success` | `Succeeded` is `True` |
| `failed` | `Succeeded` is `False` with any reason except `Cancelled`, `PipelineRunCancelled` and `TaskRunCancelled` |
| `running` | `Succeeded` is `Unknown` with any reason except `PipelineRunPending` and `Pending` |
| `pending` | `Succeeded` is `Unknown` with reason `PipelineRunPending` or `Pending`, no `Succeeded` condition, any other value, or a pipeline with no run yet |
| `cancelled` | `Succeeded` is `False` with reason `Cancelled`, `PipelineRunCancelled` or `TaskRunCancelled` |
| `skipped` | Not produced for pipelines and runs |
