Metrics weren't being set when the WPA was in dry run, replicas were above max or below min replicas, and the controller pod was restarted. The issue could be triggered with these steps:
WPA in dry run
scale app to > max replicas
delete WPA pod
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Describe your test plan
Write there any instructions and details you may have to test your PR.
What does this PR do?
Metrics weren't being set when the WPA was in dry run, replicas were above max or below min replicas, and the controller pod was restarted. The issue could be triggered with these steps:
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Describe your test plan
Write there any instructions and details you may have to test your PR.