Skip to content

Commit

Permalink
fix typo in log message (kedacore#4902)
Browse files Browse the repository at this point in the history
`s/deployment/statefulset` in `pkg/scaling/resolver/scaling_resolver.go`
for the StatefulSet scaling resolver error message.

Signed-off-by: David Morrison <drmorr@appliedcomputing.io>
Signed-off-by: anton.lysina <alysina@gmail.com>
  • Loading branch information
drmorr0 authored and toniiiik committed Jan 15, 2024
1 parent 6da4a3f commit 05c0c40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/scaling/resolver/scale_resolvers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 05c0c40

Please sign in to comment.