Skip to content

Tekton Pipelines

Here some docs and tips for Tekton Pipelines in general.

To install Tekton:

# Installing Tekton
kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml

# Installing Tekton Dashboard
kubectl apply --filename https://github.com/tektoncd/dashboard/releases/latest/download/tekton-dashboard-release.yaml

Enabling Tekton configuration parameters

Default configurations are deployed in the "config" ConfigMap in the tekton-pipelines namespace. and also there are some parameters to enable in feature-flags in the same namespace.

To be able to overwrite the Workspaces directory in a TaskRun it is necessary to disable disable-working-directory-overwrite parameter:

apiVersion: v1
data:
  disable-affinity-assistant: "false"
  disable-creds-init: "false"
  disable-home-env-overwrite: "true"
  disable-working-directory-overwrite: "false"
  enable-api-fields: stable
  enable-custom-tasks: "false"
  enable-tekton-oci-bundles: "false"
  require-git-ssh-secret-known-hosts: "false"
  running-in-environment-with-injected-sidecars: "true"
  scope-when-expressions-to-task: "false"
kind: ConfigMap
metadata:
  labels:
    app.kubernetes.io/instance: default
    app.kubernetes.io/part-of: tekton-pipelines
  name: feature-flags
  namespace: tekton-pipelines