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

Commit

Permalink
Merge pull request #862 from kinvolk/knrt10/add-cluster-autoscaler-up…
Browse files Browse the repository at this point in the history
…date-check

Add cluster-autoscaler update check
  • Loading branch information
knrt10 authored Aug 27, 2020
2 parents 84d58bf + b030a1f commit 2d8994e
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 2d8994e

Please sign in to comment.