1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-21 05:55:35 +00:00
catalog/task/helm-upgrade-from-repo/0.3
Mike Croft c76eaf1ecb Apply suggestions from code review
Updates version number labels to match files

Co-authored-by: Florian Hopfensperger <f.hopfensperger@gmail.com>
2024-05-27 05:26:40 +01:00
..
samples copy task helm-upgrade-from-repo from 0.2 to 0.3 and helm-upgrade-from-source from 0.3 to 0.4 2024-05-27 05:26:40 +01:00
tests copy task helm-upgrade-from-repo from 0.2 to 0.3 and helm-upgrade-from-source from 0.3 to 0.4 2024-05-27 05:26:40 +01:00
helm-upgrade-from-repo.yaml Apply suggestions from code review 2024-05-27 05:26:40 +01:00
README.md Apply suggestions from code review 2024-05-27 05:26:40 +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.3/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_image: The helm image which should be used (default: lachlanevenson/k8s-helm:v3.5.0)

Platforms

The Task can be run on linux/amd64, linux/s390x, linux/arm64 and linux/ppc64le platforms.

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