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

Commit

Permalink
Add reuse-values option (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
hippolin authored and msiegenthaler committed Oct 17, 2018
1 parent 7cb67f0 commit bef5337
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ on the cluster.
* `recreate_pods`: *Optional.* This flag will cause all pods to be recreated when upgrading. (Default: false)
* `show_diff`: *Optional.* Show the diff that is applied if upgrading an existing successful release. Will not be used when `devel` is set. (Default: false)
* `exit_after_diff`: *Optional.* Show the diff but don't actually install/upgrade. (Default: false)
* `reuse_values`: *Optional.* When upgrading, reuse the last release's values. (Default: false)

## Example

Expand Down
6 changes: 6 additions & 0 deletions assets/out
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ show_diff=$(jq -r '.params.show_diff // "false"' < $payload)
recreate_pods=$(jq -r '.params.recreate_pods // "false"' < $payload)
tls_enabled=$(jq -r '.source.tls_enabled // "false"' < $payload)
exit_after_diff=$(jq -r '.params.exit_after_diff // "false"' < $payload)
reuse_values=$(jq -r '.params.reuse_values // "false"' < $payload)

if [ -z "$chart" ]; then
if [[ "$test" == "false" && "$delete" == "false" ]]; then
Expand Down Expand Up @@ -134,6 +135,11 @@ helm_upgrade() {
if [ "$force" = true ]; then
non_diff_args+=("--force")
fi
if [ "$reuse_values" = true ]; then
upgrade_args+=("--reuse-values")
non_diff_args+=("--reuse-values")
fi

logfile="/tmp/log"
mkdir -p /tmp

Expand Down

0 comments on commit bef5337

Please sign in to comment.