1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-24 06:15:46 +00:00
catalog/task/helm-upgrade-from-repo/0.1
2023-09-15 20:30:19 +01:00
..
samples Fix helm-upgrade-from-repo tests 2020-11-20 12:44:28 +00:00
tests Fix helm-upgrade-frm-repo 2023-09-15 20:30:19 +01:00
helm-upgrade-from-repo.yaml Add linux/amd64 platform annotation to the rest of the tasks 2021-10-29 17:08:38 +01:00
README.md [TEP-0110] Update Tekton Catalog installation instructions 2022-08-16 16:25:52 +01:00

Helm

These tasks will install / upgrade a helm chart into your Kubernetes / OpenShift Cluster using Helm.

Install the Task

Workspaces

  • source: A Workspace volume containing the helm chart.

helm install / upgrade from repo

kubectl apply -f https://api.hub.tekton.dev/v1/resource/tekton/task/helm-upgrade-from-repo/0.1/raw

Parameters

  • chart_name: The directory in the source repository where the installable chart should be found.
  • release_version: The version of the release (default: v1.0.0)
  • release_name: The name of the release (default: helm-release)
  • release_namespace: The namespace in which the release is to be installed (default: "")
  • overwrite_values: The values to be overwritten (default: "")
  • helm_version: The helm version which should be used (default: latest)

Platforms

The Task can be run on linux/amd64 platform.

Usage

PipelineRun

An example Pipeline with a PipelineRun can be found in the subdirectory tests.

TaskRun

This TaskRun runs the task to retrieve a Git repo and then installs/updates the helm chart that is in the Git repo.

# example upgrade from repo
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
  name: example-helm-upgrade-from-repo
spec:
  taskRef:
    name: helm-upgrade-from-repo
  params:
  - name: helm_repo
    value: https://kubernetes-charts.storage.googleapis.com
  - name: chart_name
    value: stable/envoy
  - name: release_version
    value: v1.0.0
  - name: release_name
    value: helm-repo-sample
  - name: overwrite_values
    value: autoscaling.enabled=true,autoscaling.maxReplicas=3