Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Let people explicitly include images to scan #2850

Merged
merged 1 commit into from
Feb 17, 2020
Merged

Conversation

squaremo
Copy link
Member

Currently there's an option to exclude specific images, which has a
handy default of excluding the Kubernetes components' images. But if
you only ever care about your specific images, it's probably going to
be easier to supply a list of images to include.

This commit adds the flag --registry-include-image, and a tiny
abstraction so that the exclude/include logic can be applied to image
scanning.

Currently there's an option to exclude specific images, which has a
handy default of excluding the Kubernetes components' images. But if
you only ever care about your specific images, it's probably going to
be easier to supply a list of images to _include_.

This commit adds the flag `--registry-include-image`, and a tiny
abstraction so that the exclude/include logic can be applied to image
scanning.
Copy link
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Michael 🌻

@squaremo squaremo merged commit 9489705 into master Feb 17, 2020
@squaremo squaremo deleted the include-image branch February 17, 2020 14:12
@hiddeco hiddeco added this to the 1.19.0 milestone Feb 26, 2020
@ambis
Copy link

ambis commented Apr 3, 2020

Finally! Oh my this is so awesome.. Thank you!

I never got the ignore flag to work properly!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants