Update image name
ProprietarySearch for image names that match patterns and replace the components of the name with new values.
org. openrewrite. kubernetes. UpdateContainerImageNameRequired
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.
The digest part of the image name to search for in containers and initContainers.
The repository part of the image name to update to in containers and initContainers.
The image name to update to in containers and initContainers.
The tag part of the image name to update to in containers and initContainers.
The digest part of the image name to update to in containers and initContainers.
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. UpdateContainerImageName \
-P imageToFind= nginxInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.