Skip to content

Commit

Permalink
fix typo in logs
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
  • Loading branch information
JorTurFer committed Dec 20, 2022
1 parent 245a94c commit 1bab396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis/keda/v1alpha1/scaledobject_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func validateWorkload(so *ScaledObject) error {
hpaTarget.Name == soTarget.Name {
labels := hpa.GetLabels()
if val, ok := labels[ScaledObjectOwnerAnnotation]; !ok || val != so.Name {
err := fmt.Errorf("the workload %s of type %s/%s is already managed by the hpa %s, and it isn't managed by this scaledobject", soTarget.Name, soTarget.APIVersion, soTarget.Kind, hpa.Name)
err := fmt.Errorf("the workload %s of type %s/%s is already managed by the hpa %s, and it isn't managed by this scaledobject", soTarget.Name, soTargetAPI, soTargetKind, hpa.Name)
scaledobjectlog.Error(err, "validation error")
return err
}
Expand Down

0 comments on commit 1bab396

Please sign in to comment.