From 428b5a6a2212a58b0e81a47379a792761f7198a7 Mon Sep 17 00:00:00 2001 From: Yoon Park Date: Sat, 8 Jul 2023 15:15:49 +0900 Subject: [PATCH] Add change log Signed-off-by: Yoon Park --- CHANGELOG.md | 1 + pkg/scaling/scaledjob/metrics.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6bd659a521..b54e0070ca9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -96,6 +96,7 @@ New deprecation(s): - **General**: Automatically scale test clusters in/out to reduce environmental footprint & improve cost-efficiency ([#4456](https://github.com/kedacore/keda/pull/4456)) - **General**: Use default metrics provider from sigs.k8s.io/custom-metrics-apiserver ([#4473](https://github.com/kedacore/keda/pull/4473)) - **General**: Refactor several functions for Status & Conditions handling into pkg util functions ([#2906](https://github.com/kedacore/keda/pull/2906)) +- **General**: Refactor ScaledJob related methods to be located at scale_handler ([#4781](https://github.com/kedacore/keda/issues/4781)) - **General**: Bump `kubernetes-sigs/controller-runtime` to v0.15.0 and code alignment ([#4582](https://github.com/kedacore/keda/pull/4582)) ## v2.10.1 diff --git a/pkg/scaling/scaledjob/metrics.go b/pkg/scaling/scaledjob/metrics.go index b04444a1061..92001d8ced6 100644 --- a/pkg/scaling/scaledjob/metrics.go +++ b/pkg/scaling/scaledjob/metrics.go @@ -1,9 +1,10 @@ package scaledjob import ( + "math" + v2 "k8s.io/api/autoscaling/v2" "k8s.io/apimachinery/pkg/api/resource" - "math" ) // GetTargetAverageValue returns the average of all the metrics' average value.