← All recipes
Moderne licensed

Find Kubernetes manifest flavors

Recipe IDorg.openrewrite.kubernetes.search.FindManifestFlavorsArtifactorg.openrewrite.recipe:rewrite-kubernetes

Classify every YAML file in a repository by what it actually is — a manifest, a Helm chart template, a kustomization, something else entirely — and by whether an edit to it would mean what it appears to mean. This is the denominator every other Kubernetes report is a fraction of.

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.FindManifestFlavors

If the recipe isn’t available locally, install it with:

mod config recipes jar install org.openrewrite.recipe:rewrite-kubernetes:RELEASE

Options

NameTypeDescription
fileMatcherStringOnly report on matching files. This is a glob expression. The whole repository is classified either way, because deciding what charts/app/templates/deploy.yaml is requires finding charts/app/Chart.yaml.
e.g. **/*.yml

Data tables

Structured output this recipe can produce.

  • Manifest flavorsEvery YAML file in the repository, classified by what it actually is and by whether an edit to it would mean what it appears to mean. The denominator for the coverage of every other table here.org.openrewrite.kubernetes.table.ManifestFlavors
  • 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