From e6adf329767307d5445de6cd9ab4898be6245912 Mon Sep 17 00:00:00 2001 From: David Morrison Date: Wed, 23 Aug 2023 11:47:45 -0700 Subject: [PATCH] fix typo `s/deployment/statefulset` in `pkg/scaling/resolver/scaling_resolver.go` for the StatefulSet scaling resolver error message. Signed-off-by: David Morrison --- 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 7b385145935..d4115ee648a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -76,6 +76,7 @@ New deprecation(s): ### Other +- **General**: Fixed a typo in the StatefulSet scaling resolver (N/A) - **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