Find kustomize images
Recipe ID
org.openrewrite.kubernetes.search.FindKustomizeImagesArtifactorg.openrewrite.recipe:rewrite-kubernetesAn inventory of every image a kustomization overrides. The images block is where a repository's image pins actually live once kustomize is in play, and it is rewritten by kustomize edit set image, sed, yq and hand edits alike, so it is worth knowing where they all are.
Single recipeProprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.kubernetes.search.FindKustomizeImagesIf the recipe isn’t available locally, install it with:
mod config recipes jar install org.openrewrite.recipe:rewrite-kubernetes:RELEASEOptions
| Name | Type | Description |
|---|---|---|
imageName | String | Only inventory entries whose name matches this glob expression. When omitted, every entry is inventoried.e.g. ghcr.io/telekom/* |
fileMatcher | String | Matching files will be searched. This is a glob expression. When omitted, the file names kustomize itself recognizes are matched: kustomization.yaml, kustomization.yml and Kustomization.e.g. **/overlays/**/kustomization.yaml |
Data tables
Structured output this recipe can produce.
- Kustomize imagesEvery image a kustomization overrides, one row per entry in an `images` block.
org.openrewrite.kubernetes.table.KustomizeImages - Source files that had resultsSource files that were modified by the recipe run.
org.openrewrite.table.SourcesFileResults - Source files that had search resultsSearch results that were found during the recipe run.
org.openrewrite.table.SearchResults - Source files that errored on a recipeThe details of all errors produced by a recipe run.
org.openrewrite.table.SourcesFileErrors - Recipe performanceStatistics used in analyzing the performance of recipes.
org.openrewrite.table.RecipeRunStats