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

Ability to exclude additions #298

Open
zendesk-slowery23 opened this issue May 3, 2023 · 0 comments
Open

Ability to exclude additions #298

zendesk-slowery23 opened this issue May 3, 2023 · 0 comments

Comments

@zendesk-slowery23
Copy link

Is there a way to exclude additions in the report? It would be a useful feature to be able to exclude additions to focus on changed and deleted attributes as those are mostly likely to cause problems if engineers are following good release practices.

As an example, if I had this file as the "from"

apiVersion: apps/v1
kind: Deployment
metadata:
  name: foo
  annotations:
    bar: bar

And this file as the "to"

apiVersion: apps/v1
kind: Deployment
metadata:
  name: foo
  annotations:
    bar: bar2
    baz: baz

Running dyff with some sort of --exclude-additions flag to have the report only show

     _        __  __
   _| |_   _ / _|/ _|  between one.yml
 / _' | | | | |_| |_       and two.yml
| (_| | |_| |  _|  _|
 \__,_|\__, |_| |_|   returned one differences
        |___/

metadata.annotations.bar
  ± value change
    - bar
    + bar2
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