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

Commit

Permalink
limit helm history and list commands to one revision (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbialy authored May 14, 2020
1 parent 251d052 commit dc45d10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/out
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ set_overridden_values() {
# Find the current revision of a helm release
current_deployed() {
local release="$1"
$helm_bin history $tls_flag --tiller-namespace $tiller_namespace --max 20 $release | grep "DEPLOYED"
$helm_bin history $tls_flag --tiller-namespace $tiller_namespace --max 1 $release | grep "DEPLOYED"
}

helm_upgrade() {
Expand Down Expand Up @@ -306,7 +306,7 @@ else
helm_upgrade

if [ "$release" = "" ]; then
release=$(helm ls -qrd --tiller-namespace $tiller_namespace --max 20 | head -1)
release=$(helm ls -qrd --tiller-namespace $tiller_namespace --max 1 | head -1)
fi
deployed=$(current_deployed "$release")
revision=$(echo $deployed | awk '{ print $1 }')
Expand Down

0 comments on commit dc45d10

Please sign in to comment.