openrewrite / rewrite-kubernetes

OpenRewrite recipes for Kubernetes.
Apache License 2.0
9 stars 8 forks source link

AddConfiguration inserts mappings with the flow-style format #34

Closed pway99 closed 2 years ago

pway99 commented 2 years ago

Discovered in rewrite-kubernetes AddConfigurationTest

expected:

  spec:
    containers:
    - name: nginx
      image: nginx
      securityContext:
        allowPrivilegeEscalation: false

but was:

  spec:
    containers:
    - name: nginx
      image: nginx
      securityContext: {
        allowPrivilegeEscalation: false}

https://github.com/openrewrite/rewrite-kubernetes/actions/runs/2277333955