Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Commit

Permalink
Allow params.release to be either file or string (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
arbourd authored and msiegenthaler committed Apr 27, 2018
1 parent 1c4fb2c commit c37b17a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ on the cluster.
#### Parameters

* `chart`: *Required.* Either the file containing the helm chart to deploy (ends with .tgz) or the name of the chart (e.g. `stable/mysql`).
* `release`: *Optional.* File containing the name of the release. (Default: taken from source configuration).
* `release`: *Optional.* Either a file containing the name of the release or the name of the release. (Default: taken from source configuration).
* `values`: *Optional.* File containing the values.yaml for the deployment. Supports setting multiple value files using an array.
* `override_values`: *Optional.* Array of values that can override those defined in values.yaml. Each entry in
the array is a map containing a key and a value or path. Value is set directly while path reads the contents of
Expand Down
6 changes: 5 additions & 1 deletion assets/out
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ if [ -z "$chart" ]; then
exit 1
fi
if [ -n "$release_file" ]; then
release=`cat $source/$release_file`
if [ -f "$release_file" ]; then
release=`cat $source/$release_file`
else
release=$release_file
fi
else
release=$(jq -r '.source.release // ""' < $payload)
fi
Expand Down

0 comments on commit c37b17a

Please sign in to comment.