Skip to content

Commit

Permalink
fix: Cannot identify image without sha
Browse files Browse the repository at this point in the history
  • Loading branch information
langecode committed Jul 31, 2024
1 parent 04a6c3b commit 6c2c1a4
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pkg/controllers/workload.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,18 +155,6 @@ func (r *WorkloadController) reconcileWorkload(workloadKind kube.Kind) reconcile
if !img.Central {
uptodate = uptodate && img.LastScan.After(time.Now().Add(-12*time.Hour))
}

if uptodate {
// Make sure reference to workload is recorded even if centrally scanned
parent, err := resolveOwnerChain(ctx, &r.ObjectResolver, workloadObj)
if err != nil {
return ctrl.Result{}, err
}
err = r.DepService.PushScan(ctx, ref, &dependencies.ScanResult{Workload: dependencies.RefFromKind(parent)})
if err != nil {
return ctrl.Result{}, err
}
}
}
}

Expand Down

0 comments on commit 6c2c1a4

Please sign in to comment.