Find image by name

Proprietary

The image name to search for in containers and initContainers.

org.openrewrite.kubernetes.search.FindImage

Required

The image name to search for in containers and initContainers.

Optional

The repository part of the image name to search for in containers and initContainers.

The tag part of the image name to search for in containers and initContainers.

includeInitContainersboolean

Boolean to indicate whether or not to treat initContainers/image identically to containers/image.

Matching files will be modified. This is a glob expression.

mod run . --recipe=org.openrewrite.kubernetes.search.FindImage \ -P imageName=nginx

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.