This repository contains a fork of cluster autoscaler of version 1.12. To fix one bug present in 1.12 till version 1.12.8 The bug is documented in kubernetes#3042 (comment)
You can either use the docker image which contain the fix yogeshkunjir/clusterautoscaler:v1.12.8.patch-fix which is of this build or compile below source code or patch offical one and compile using below steps.
Prerequisites.
Linux with Go(version 1.13 or above) and make.
go get https://github.com/kubernetes/kubernetes
go get https://github.com/kubernetes/kubernetes/autoscaler cd in $GOPATH/src/github.com/kubernetes/autoscaler
make all
you should get binary file use command to make binary docker build . -t clusterautoscaler:v1.12.8.patch-fix
I have made zero changes from my side so all credit to kubernetes author for cluster autoscaler and special credit for https://github.com/gjtempleton for this patch.