Skip to content

Commit

Permalink
pass request.name as key when config is deleted
Browse files Browse the repository at this point in the history
Signed-off-by: Avinash Patnala <avinashpatnala@google.com>
  • Loading branch information
Avinash Patnala committed Sep 18, 2024
1 parent d80d5a3 commit 1a3c143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/config/config_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func (r *ReconcileConfig) Reconcile(ctx context.Context, request reconcile.Reque
r.tracker.For(configGVK).Observe(instance)

if deleted {
return reconcile.Result{}, r.deleteStatus(ctx, instance.GetName())
return reconcile.Result{}, r.deleteStatus(ctx, request.Name)
}
return reconcile.Result{}, r.updateOrCreatePodStatus(ctx, instance)
}
Expand Down

0 comments on commit 1a3c143

Please sign in to comment.