Open
Description
Is this a BUG REPORT or FEATURE REQUEST?:
Uncomment only one, leave it on its own line:
/kind bug
/kind feature
What happened:
It looks like validation of HPA is insufficient:
- metric name in pods and object metrics should be checked using IsValidPathSegmentName as they're used as part of request to custom metrics API (this is analogous to Validate path in external metric name #60433).
- ValidateCrossVersionObjectReference allows for empty apiVersion, leading to non-functional HPA.