mercari / tortoise

Tortoise: Shell-Shockingly-Good Kubernetes Autoscaling
MIT License
316 stars 14 forks source link

allow to re-add HPA name if same #398

Closed sanposhiho closed 2 months ago

sanposhiho commented 2 months ago

What this PR does / why we need it:

Now, the removal of HorizontalPodAutoscalerName is allowed, but empty → non-empty is not allowed. This PR make it loosen; if HorizontalPodAutoscalerName is added and it's the same as .status.targets.horizontalpodautoscaler, then it's allowed.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer: