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

Commit 46baade

Browse files
author
knrt10
committed
Add cluster-autoscaler update check
Closes #809 Signed-off-by: knrt10 <kautilya@kinvolk.io>
1 parent 84d58bf commit 46baade

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/find-updates.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,15 @@ version=$(grep version "${tmpdir}/velero/Chart.yaml" | cut -d":" -f2 | sed 's/ /
188188
printf "${format}" "velero" "${current_version}" "${version}"
189189
rm -rf "${tmpdir}"
190190

191+
###########################
192+
# cluster-autoscaler
193+
cd "${workdir}"
194+
current_version=$(grep version assets/charts/components/cluster-autoscaler/Chart.yaml | cut -d":" -f2 | sed 's/ //g' | sed 's/"//g')
195+
196+
get_latest_release kubernetes/autoscaler
197+
latest_version=$(echo $version | cut -d"-" -f 4 | sed 's/ //g' | sed 's/"//g')
198+
printf "${format}" "cluster-autoscaler" "${current_version}" "${latest_version}"
199+
191200
###########################
192201
echo
193202
# Print the column names.

0 commit comments

Comments
 (0)