Skip to content

Commit

Permalink
comment delete (#193)
Browse files Browse the repository at this point in the history
Signed-off-by: Amir Malka <[email protected]>
  • Loading branch information
amirmalka authored Nov 28, 2023
1 parent 739d889 commit c220fcf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions watcher/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,11 @@ func (wh *WatchHandler) HandleVulnerabilityManifestEvents(vmEvents <-chan watch.
}

if !hasObject {
err := wh.storageClient.SpdxV1beta1().VulnerabilityManifests(obj.ObjectMeta.Namespace).Delete(context.TODO(), manifestName, v1.DeleteOptions{})
if err != nil {
errorCh <- err
}
// TODO(vladklokun): deletes are disabled for a quick hack
// err := wh.storageClient.SpdxV1beta1().VulnerabilityManifests(obj.ObjectMeta.Namespace).Delete(context.TODO(), manifestName, v1.DeleteOptions{})
// if err != nil {
// errorCh <- err
// }
}
}
}
Expand Down

0 comments on commit c220fcf

Please sign in to comment.