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

Add a check for cluster autoscaler in find-updates #809

Closed
surajssd opened this issue Aug 17, 2020 · 0 comments · Fixed by #862
Closed

Add a check for cluster autoscaler in find-updates #809

surajssd opened this issue Aug 17, 2020 · 0 comments · Fixed by #862
Assignees
Labels
area/updates Items related to updates

Comments

@surajssd
Copy link
Member

Add following code snippet to the script in the components section:

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

tmpdir=$(mktemp -d)
cd "${tmpdir}"

helm repo add autoscaler https://kubernetes.github.io/autoscaler >/dev/null 2>&1
helm repo update >/dev/null 2>&1
helm fetch --untar --untardir ./ autoscaler/cluster-autoscaler
version=$(grep appVersion "${tmpdir}/cluster-autoscaler/Chart.yaml" | cut -d":" -f2 | sed 's/ //g')

printf "${format}" "cluster-autoscaler" "${current_version}" "${version}"
rm -rf "${tmpdir}"

Before adding make sure that following command works without error. Right now it errors like this:

$ helm repo add autoscaler https://kubernetes.github.io/autoscaler
Error: looks like "https://kubernetes.github.io/autoscaler" is not a valid chart repository or cannot be reached: failed to fetch https://kubernetes.github.io/autoscaler/index.yaml : 404 Not Found

More info in the upstream: kubernetes/autoscaler#3398.

@surajssd surajssd added the area/updates Items related to updates label Aug 17, 2020
@knrt10 knrt10 self-assigned this Aug 26, 2020
knrt10 added a commit that referenced this issue Aug 27, 2020
Closes #809

Signed-off-by: knrt10 <kautilya@kinvolk.io>
@knrt10 knrt10 linked a pull request Aug 27, 2020 that will close this issue
knrt10 added a commit that referenced this issue Aug 27, 2020
Closes #809

Signed-off-by: knrt10 <kautilya@kinvolk.io>
knrt10 added a commit that referenced this issue Aug 27, 2020
Closes #809

Signed-off-by: knrt10 <kautilya@kinvolk.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/updates Items related to updates
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants