Skip to content

Commit

Permalink
fix typo
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>
  • Loading branch information
drmorr0 committed Aug 24, 2023
1 parent 5a28f35 commit e6adf32
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 @@ -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
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 e6adf32

Please sign in to comment.