mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-21 05:55:35 +00:00
c76eaf1ecb
Updates version number labels to match files Co-authored-by: Florian Hopfensperger <f.hopfensperger@gmail.com> |
||
---|---|---|
.. | ||
samples | ||
tests | ||
helm-upgrade-from-repo.yaml | ||
README.md |
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