1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-21 05:55:35 +00:00
catalog/task/tekton-operator-install/0.1
Quan Zhang e294e1246b [TEP-0110] Update Tekton Catalog installation instructions
Prior to this change, the installation instructions directly use the resource urls in the Catalog repo, which results in tight coupling between the organization and how users fetch resources (as described in TEP-0110). This commit updates the installation guide to install Tekton Catalog resources via Tekton Hub Api: https://github.com/tektoncd/hub/pull/539

This change decouples the Tekton Catalog organization from resouces resolution, which enables Tekton Catalog reorganization.
2022-08-16 16:25:52 +01:00
..
README.md [TEP-0110] Update Tekton Catalog installation instructions 2022-08-16 16:25:52 +01:00
tekton-operator-install.yaml Adds category field as an annotation as tekton.dev/categories 2021-07-26 13:15:08 +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://api.hub.tekton.dev/v1/resource/tekton/task/tekton-operator-install/0.1/raw

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