Skip to content

Commit

Permalink
Update controllers/keda/scaledobject_controller.go
Browse files Browse the repository at this point in the history
Signed-off-by: Zbynek Roubalik <[email protected]>
  • Loading branch information
zroubalik authored Jan 2, 2025
1 parent 4260f77 commit 497b134
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/keda/scaledobject_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +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
err := r.Client.Get(ctx, key, obj, &client.GetOptions{})
return err
}

0 comments on commit 497b134

Please sign in to comment.