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

Feature request: .dyffignore #361

Open
jrauschenbusch opened this issue Apr 19, 2024 · 0 comments
Open

Feature request: .dyffignore #361

jrauschenbusch opened this issue Apr 19, 2024 · 0 comments

Comments

@jrauschenbusch
Copy link

jrauschenbusch commented Apr 19, 2024

For more advanced compare operations like in GitOps repositories and automated environment promotion it‘s often required to exclude known but accepted differences.

It would be really good to have a mechanism like a .gitignore file, but for diffs. Furthermore it would be good to be able to exclude files and and optional subparts of a file expressed via JSON Path.

Maybe in TOML

[[excludes]]
path = "/path/to/a/deploy.yaml"
json-path = [".spec.template.spec.containers[?(name='container_1')].resources"]

[[excludes]]
path = "/path/toc/other/**/manifest.yaml"

or in YAML:

excludes:
  - file: /path/to/a/deploy.yaml
    json-path:
    - ".spec.template.spec.containers[?(name='container_1')].resources"
  - path: /path/to/other/**/manifest.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant