Skip to content

Commit

Permalink
Set namespace when looking up resource with externalName
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrox committed Feb 25, 2021
1 parent 30a941c commit f4d5fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/reconciler/managed/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ func (r *Reconciler) Reconcile(_ context.Context, req reconcile.Request) (reconc
// of the loop. In that case, we warn the user that the external resource
// might be leaked.
err := retry.OnError(retry.DefaultRetry, resource.IsAPIError, func() error {
nn := types.NamespacedName{Name: managed.GetName()}
nn := types.NamespacedName{Name: managed.GetName(), Namespace: managed.GetNamespace()}
if err := r.client.Get(ctx, nn, managed); err != nil {
return err
}
Expand Down

0 comments on commit f4d5fc3

Please sign in to comment.