Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
Add cluster-autoscaler update check
Browse files Browse the repository at this point in the history
Closes #809

Signed-off-by: knrt10 <kautilya@kinvolk.io>
  • Loading branch information
knrt10 committed Aug 27, 2020
1 parent 84d58bf commit b030a1f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/find-updates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,15 @@ version=$(grep version "${tmpdir}/velero/Chart.yaml" | cut -d":" -f2 | sed 's/ /
printf "${format}" "velero" "${current_version}" "${version}"
rm -rf "${tmpdir}"

###########################
# cluster-autoscaler
cd "${workdir}"
current_version=$(grep version assets/charts/components/cluster-autoscaler/Chart.yaml | cut -d":" -f2 | sed 's/ //g' | sed 's/"//g')

get_latest_release kubernetes/autoscaler
latest_version=$(echo $version | cut -d"-" -f4 | sed 's/ //g' | sed 's/"//g')
printf "${format}" "cluster-autoscaler" "${current_version}" "${latest_version}"

###########################
echo
# Print the column names.
Expand Down

0 comments on commit b030a1f

Please sign in to comment.