Find admissionregistration.k8s.io/v1beta1 webhook configurations

Proprietary

Find MutatingWebhookConfiguration and ValidatingWebhookConfiguration resources still on the admissionregistration.k8s.io/v1beta1 API removed in Kubernetes v1.22. Moving to admissionregistration.k8s.io/v1 is not a version swap: every webhook must declare admissionReviewVersions and sideEffects, both of which have no default in v1, and the v1beta1 defaults of failurePolicy: Ignore, matchPolicy: Exact and timeoutSeconds: 30 change to Fail, Equivalent and 10.

org.openrewrite.kubernetes.search.FindAdmissionWebhookV1beta1

Optional

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

mod run . --recipe=org.openrewrite.kubernetes.search.FindAdmissionWebhookV1beta1

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