1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-21 05:55:35 +00:00
catalog/task/helm-upgrade-from-source/0.4
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-source.yaml Apply suggestions from code review 2024-05-27 05:26:40 +01:00
README.md 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

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

Install the Task

helm install / upgrade from source code

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

Parameters

  • charts_dir: 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: "")
  • values_file: The values file to be used, assumes the values file is in the same dir as your charts_dir (default: "values.yaml")
  • helm_image: The helm image which should be used (default: lachlanevenson/k8s-helm:v3.3.4)
  • upgrade_extra_params: Extra parameters passed for the helm upgrade command (default: "")

Workspaces

  • source: A Workspace containing the helm chart.

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 source
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
  name: example-helm-upgrade-from-source
spec:
  taskRef:
    name: helm-upgrade-from-source
  params:
  - name: charts_dir
    value: helm-sample-chart
  - name: releases_version
    value: v1.0.0
  - name: release_name
    value: helm-source-sample
  - name: overwrite_values
    value: "autoscaling.enabled=true,autoscaling.maxReplicas=3"
  workspaces:
  - name: source
    persistentVolumeClaim:
      claimName: my-source