Find custom resources using deprecated CRD fields
ProprietaryFind custom resources that set a field which a CustomResourceDefinition in this repository marks deprecated, or that are on a version the CustomResourceDefinition deprecates. controller-gen copies Go doc comments verbatim into a CRD's OpenAPI schema description, so a field deprecated in Go ships its own deprecation notice inside the CRD and no per-CRD configuration is needed.
org. openrewrite. kubernetes. crd. FindCustomResourcesUsingDeprecatedCrdFieldsOptional
strict, the default, recognizes only the Go convention of a description whose line begins with Deprecated and a separator. loose additionally accepts is deprecated, has been deprecated and will be removed in anywhere in a description, at the cost of reporting prose that merely mentions a deprecation.
A regular expression matched against a property's description in addition to the built-in markers, for house deprecation conventions.
mod run . --recipe= org. openrewrite. kubernetes. crd. FindCustomResourcesUsingDeprecatedCrdFieldsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.