Add Kubernetes configuration

Proprietary

Add default required configuration when it is missing.

org.openrewrite.kubernetes.AddConfiguration

Required

The Kubernetes resource type the configured is required on.

A JsonPath expression to locate Kubernetes configuration. Must be an absolute path.

The configuration that is added when necessary, including the key.

Optional

The Kubernetes resource API version to use.

mod run . --recipe=org.openrewrite.kubernetes.AddConfiguration \ -P resourceKind=PodSecurityPolicy \ -P configurationPath='$.spec' \ -P value='privileged: false'

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