Skip to content

Commit

Permalink
fix: non completed containers with invalid stacktrace (#2107)
Browse files Browse the repository at this point in the history
Signed-off-by: chenk <[email protected]>
  • Loading branch information
chen-keinan authored May 30, 2024
1 parent 0babd17 commit f1dada8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ output/*
## yamllint logfile
yamllint-*
kubeconfig
## policies folder
cmd/trivy-operator/tmp/
2 changes: 0 additions & 2 deletions pkg/vulnerabilityreport/controller/scanjob.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,6 @@ func (r *ScanJobController) completedContainers(ctx context.Context, scanJob *ba
}
if strings.Contains(status.Message, "no child with platform linux") {
log.Info("Scan job container", "container", container, "status.reason", status.Reason, "status.message", "Scanning Windows images is not supported.")
} else {
log.Error(nil, "Scan job container", "container", container, "status.reason", status.Reason, "status.message", status.Message)
}
}
return completedContainers, nil
Expand Down

0 comments on commit f1dada8

Please sign in to comment.