Skip to content

Commit

Permalink
One more HPAKey fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaveMyYard committed May 3, 2024
1 parent 43ffb7f commit 2403898
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,9 @@ def __get_metric(hpa: V2HorizontalPodAutoscaler, metric_name: str) -> Optional[f

return {
HPAKey(
hpa.metadata.namespace,
hpa.spec.scale_target_ref.kind,
hpa.spec.scale_target_ref.name,
namespace=hpa.metadata.namespace,
kind=hpa.spec.scale_target_ref.kind,
name=hpa.spec.scale_target_ref.name,
): HPAData(
min_replicas=hpa.spec.min_replicas,
max_replicas=hpa.spec.max_replicas,
Expand Down

0 comments on commit 2403898

Please sign in to comment.