Skip to content

Commit

Permalink
disable unit test
Browse files Browse the repository at this point in the history
Signed-off-by: David Wertenteil <dwertent@armosec.io>
  • Loading branch information
David Wertenteil committed Aug 5, 2023
1 parent 7f0e355 commit 776b418
Show file tree
Hide file tree
Showing 3 changed files with 226 additions and 219 deletions.
4 changes: 4 additions & 0 deletions cmd/scan/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,14 @@ func getImageCmd(ks meta.IKubescape, scanInfo *cautils.ScanInfo, imgScanInfo *im
userInput := args[0]

logger.L().Info(fmt.Sprintf("Scanning image: %s", userInput))
cautils.StartSpinner()
scanResults, err := svc.Scan(ctx, userInput, creds)
if err != nil {
cautils.StopSpinner()
return err
}
cautils.StopSpinner()

logger.L().Success("Image scan completed successfully")

scanInfo.SetScanType(cautils.ScanTypeImage)
Expand Down
3 changes: 3 additions & 0 deletions core/pkg/resourcehandler/resourcehandlerutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ func addSingleResourceToResourceMaps(k8sResources cautils.K8SResources, allResou
if wl == nil {
return
}
// if k8sinterface.WorkloadHasParent(wl) {
// return
// }

allResources[wl.GetID()] = wl

Expand Down
Loading

0 comments on commit 776b418

Please sign in to comment.