1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-29 06:34:08 +00:00
catalog/task/tekton-operator-install/0.1
PuneetPunamiya 5a3e5f630f Adds category field as an annotation as tekton.dev/categories
- Initially all tags were mapped to categories in Hub,
     for e.g. config.yaml: https://github.com/tektoncd/hub/blob/master/config.yaml,
     so whenever a new tag was added in a task it was mapped to a category called `others`.
     Hence before every release we had to manually map these new tags to some category,
     hence after the discussion in Catalog and Hub WG, a proposal was created for adding
     a category as an annotation.

   - PR to update the TEP-0003-Tekton Catalog Organization: https://github.com/tektoncd/community/pull/352

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2021-07-26 13:15:08 +01:00
..
README.md Update self reference from master to main 🧙 2021-03-19 11:09:49 +00: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://raw.githubusercontent.com/tektoncd/catalog/main/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