mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-21 05:55:35 +00:00
e763a4473e
With git-clone version 0.8 and onwards, it started running as non-root and GKE clusters were having some issues, so, we temporarily moved all tasks to use git-clone version 0.7. Ref: https://github.com/tektoncd/catalog/pull/1079 Since we have now moved to kind clusters in our CI, this issue is now resolved and thus moving all tasks to use latest version of git-clone Signed-off-by: vinamra28 <jvinamra776@gmail.com> |
||
---|---|---|
.. | ||
samples | ||
tests | ||
helm-upgrade-from-source.yaml | ||
README.md |
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