estafette / estafette-k8s-hpa-scaler

Kubernetes controller to set minimum replicas from a Prometheus query on annotated HorizontalPodAutoscalers to avoid collapsing deployments in case of errors
https://helm.estafette.io
MIT License
10 stars 6 forks source link

Fix min lower bounds parsing #4

Closed markvincze closed 5 years ago

markvincze commented 5 years ago

I think this logic was wrong.

If the string was correct, we didn't do anything, and if it was incorrect, we changed the number to 0.