1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-22 06:02:51 +00:00
catalog/task/tekton-operator-install/0.1
vinamra28 071f33e08c Add Task to install Tekton components using Tekton Operator Release
The following task uses the released version of tekton operator to install tekton components on a new cluster. By default Tekton pipelines are installed but if we want to install other components as well then we can specify their version in the parameters of the task and respective component will get installed.

Signed-off-by: vinamra28 <vinjain@redhat.com>
2020-09-02 13:41:12 +01:00
..
README.md Add Task to install Tekton components using Tekton Operator Release 2020-09-02 13:41:12 +01:00
tekton-operator-install.yaml Add Task to install Tekton components using Tekton Operator Release 2020-09-02 13:41:12 +01:00

Install Tekton & Components

This task can be used to install Tekton pipelines and also it's components using Tekton Operator on a new cluster.

Install the Task

kubectl apply --filename https://raw.githubusercontent.com/tektoncd/catalog/master/task/tekton-operator-install/0.1/tekton-operator-install.yaml

Parameters

  • OPERATOR_VERSION: Tekton Operator release version to be used for installing tekton components. (Default : "latest")
  • INSTALL_TRIGGERS: If Triggers needs to be installed. (Default : "false")
  • INSTALL_DASHBOARD: If Tekton Dashboard needs to be installed. (Default : "false")
  • INSTALL_EXTENSION_WEBHOOKS: If Tekton Extension Webhooks needs to be installed. (Default : "false")

Note: The last three parameters accepts value "true"/"false". Default being "false" means we don't want to install that component.

Workspaces

  • kubeconfig: The workspace consisting of the kubeconfig file of the new cluster on which tekton pipelines & components needs to be installed.

Sample Usage

  1. Create the ConfigMap
kubectl create configmap kubeconfig --from-file="path/to/kubeconfig"
  1. Create a TaskRun in case you want to install Triggers
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
  name: operator-run
spec:
  taskRef:
    name: tekton-operator-install
  params:
    - name: INSTALL_TRIGGERS
      value: "true"
  workspaces:
    - name: kubeconfig
      configMap:
        name: kubeconfig
  1. Create a TaskRun in case you want to install Triggers as well as Dashboard
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
  name: operator-run
spec:
  taskRef:
    name: tekton-operator-install
  params:
    - name: INSTALL_TRIGGERS
      value: "true"
    - name: INSTALL_DASHBOARD
      value: "true"
  workspaces:
    - name: kubeconfig
      configMap:
        name: kubeconfig