Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
Kais committed Jul 2, 2024
1 parent 9c8a0e5 commit f2fa61d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def build_metric_value_path(hpa) -> str:
returns the Kube API path to retrieve the custom.metrics.k8s.io used metric.
"""
metrics = json.loads(hpa.metadata.annotations["autoscaling.alpha.kubernetes.io/metrics"])
print(metrics)
try:
custom_metric = next(m["object"] for m in metrics if m["type"] == "Object")
assert not custom_metric.get("selector")
Expand Down

0 comments on commit f2fa61d

Please sign in to comment.