Skip to content

Commit

Permalink
Update scaledobject_controller.go
Browse files Browse the repository at this point in the history
Signed-off-by: Shane <[email protected]>
  • Loading branch information
ctccxxd authored Jan 3, 2025
1 parent 497b134 commit 3aff46d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/keda/scaledobject_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ func (r *ScaledObjectReconciler) updateStatusWithTriggersAndAuthsTypes(ctx conte

func (r *ScaledObjectReconciler) getFromCacheOrDirect(ctx context.Context, key client.ObjectKey, obj client.Object) error {
// r.Client from controller-runtime here had implemented the logic to choose to perform a cache or live lookup.
// this functionality is mostly used in the admission webhooks or places where we acutally want to implement this on our own
// this functionality is mostly used in the admission webhooks or places where we actually want to implement this on our own
err := r.Client.Get(ctx, key, obj, &client.GetOptions{})
return err
}

0 comments on commit 3aff46d

Please sign in to comment.