Remove unused value
Removes an unused value in the alerthandler.go file, shown
via lgtm.com.
@@ -98,7 +98,8 @@ func scaleService(alert requests.PrometheusInnerAlert, service scaling.ServiceQu
// CalculateReplicas decides what replica count to set depending on current/desired amount
func CalculateReplicas(status string, currentReplicas uint64, maxReplicas uint64, minReplicas uint64, scalingFactor uint64) uint64 {
- newReplicas := currentReplicas
+ var newReplicas uint64
+
step := uint64(math.Ceil(float64(maxReplicas) / 100 * float64(scalingFactor)))
if status == "firing" && step > 0 {
