Skip to content

Commit 50d5e4f

Browse files
authored
avoid plan cache when handling jobs (#142)
Attempting to address #134 Signed-off-by: Jacob Blain Christen <[email protected]>
1 parent d47ac07 commit 50d5e4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/upgrade/handle_batch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (ctl *Controller) handleJobs(ctx context.Context) error {
4747
return obj, deleteJob(jobs, obj, metav1.DeletePropagationBackground)
4848
}
4949
// get the plan being applied
50-
plan, err := plans.Cache().Get(obj.Namespace, planName)
50+
plan, err := plans.Get(obj.Namespace, planName, metav1.GetOptions{})
5151
switch {
5252
case errors.IsNotFound(err):
5353
// plan is gone, delete

0 commit comments

Comments
 (0)