Add cluster-autoscaler update check
Closes
@@ -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.
