Find annotation

Proprietary

Find annotations that optionally match a given value.

org.openrewrite.kubernetes.search.FindMissingOrInvalidAnnotation

Required

The name of the annotation to search for the existence of.

Optional

An optional regex that will validate values that match.

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

mod run . --recipe=org.openrewrite.kubernetes.search.FindMissingOrInvalidAnnotation \ -P annotationName=mycompany.io/annotation

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