Skip to content

Commit

Permalink
rmi image that check-payload downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
bentito committed Nov 7, 2023
1 parent d2530a7 commit 6a330e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/index/bundles/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ func ExecuteExternalValidator(imageRef string) (bool, []string, []string, error)
// Log the command being executed for debugging purposes
log.Infof("Executing external validator with command: %s", extValidatorCmd)

// Remove the image that check-payload has downloaded using the rmi command
log.Infof("Removing image with command: %s rmi %s", flags.ContainerEngine, imageRef)
rmiCmd := exec.Command(flags.ContainerEngine, "rmi", imageRef)
_, _ = pkg.RunCommand(rmiCmd)

output, err := cmd.CombinedOutput()
if err != nil {
return false, nil, nil, err
Expand Down

0 comments on commit 6a330e8

Please sign in to comment.