Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use block processor breaks on valid yaml #188

Open
Striar-Yunis opened this issue Jan 24, 2024 · 0 comments
Open

Use block processor breaks on valid yaml #188

Striar-Yunis opened this issue Jan 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Striar-Yunis
Copy link

In a file with the following yaml:

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: monitor
resources:
  - bundle.yaml

patches:
  - target:
      kind: ClusterRoleBinding
      name: prometheus-operator
    patch: |-
      - op: replace
        path: /subjects/0/namespace
        value: monitor

Enabling block processing results in:

bad indentation of a mapping entry (12:11)
  9 |       kind: ClusterRoleBinding
 10 |       name: prometheus-operator
 11 |     patch: vscode-yaml-sort.block.0
 12 |       - op: replace
----------------^
 13 |         path: /subjects/0/namespace
 14 |         value: monitor
@pascalre pascalre added the bug Something isn't working label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants