From 05c0c40ab84297cb98c23fe3406e7ad5f082b2fe Mon Sep 17 00:00:00 2001 From: David Date: Thu, 24 Aug 2023 08:50:27 -0700 Subject: [PATCH] fix typo in log message (#4902) `s/deployment/statefulset` in `pkg/scaling/resolver/scaling_resolver.go` for the StatefulSet scaling resolver error message. Signed-off-by: David Morrison Signed-off-by: anton.lysina --- CHANGELOG.md | 1 + pkg/scaling/resolver/scale_resolvers.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e78bc6107d..909bafd6a4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -81,6 +81,7 @@ New deprecation(s): ### Other +- **General**: Fixed a typo in the StatefulSet scaling resolver ([#4902](https://github.com/kedacore/keda/pull/4902)) - **General**: Refactor ScaledJob related methods to be located at scale_handler ([#4781](https://github.com/kedacore/keda/issues/4781)) ## v2.11.2 diff --git a/pkg/scaling/resolver/scale_resolvers.go b/pkg/scaling/resolver/scale_resolvers.go index 9d18eeb20c0..91dc9f63cfd 100644 --- a/pkg/scaling/resolver/scale_resolvers.go +++ b/pkg/scaling/resolver/scale_resolvers.go @@ -112,7 +112,7 @@ func ResolveScaleTargetPodSpec(ctx context.Context, kubeClient client.Client, sc statefulSet := &appsv1.StatefulSet{} if err := kubeClient.Get(ctx, objKey, statefulSet); err != nil { // resource doesn't exist - logger.Error(err, "target deployment doesn't exist") + logger.Error(err, "target statefulset doesn't exist") return nil, "", err } podTemplateSpec.ObjectMeta = statefulSet.ObjectMeta