1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-22 06:02:51 +00:00

This patch splits helm-upgrade-from-repo task from the helm directory

Changes include:
   - moves helm-upgrade-from-repo task to the task directory
   - copies and modifies readme file for helm-upgrade-from-repo from helm directory
   - moves OWNERS,examples and tests directory from helm directory

Issue: #386

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
This commit is contained in:
PuneetPunamiya 2020-07-10 15:31:20 +05:30 committed by tekton-robot
parent 58ba68821e
commit 981b883b44
8 changed files with 1 additions and 40 deletions

View File

@ -4,21 +4,6 @@ These tasks will install / upgrade a helm chart into your Kubernetes / OpenShift
## Install the Task
### helm install / upgrade from source code
```
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/master/helm/helm-upgrade-from-source.yaml
```
#### 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: ""*)
- **helm_version**: The helm version which should be used (*default: latest*)
#### Workspaces
* **source**: A [Workspace](https://github.com/tektoncd/pipeline/blob/master/docs/workspaces.md) volume containing the helm chart.
@ -26,7 +11,7 @@ kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/master/helm/
### helm install / upgrade from repo
```
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/master/helm/helm-upgrade-from-repo.yaml
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/master/task/helm-upgrade-from-repo/0.1/helm-upgrade-from-repo.yaml
```
#### Parameters
@ -48,30 +33,6 @@ An example `Pipeline` with a `PipelineRun` can be found in the subdirectory `tes
This `TaskRun` runs the task to retrieve a Git repo and then installs/updates the helm chart that is in the Git repo.
```yaml
# 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
```
```yaml
# example upgrade from repo
apiVersion: tekton.dev/v1beta1