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

Suppress uninteresting parts of long object diffs #497

Closed
porridge opened this issue Nov 15, 2023 · 0 comments · Fixed by #498
Closed

Suppress uninteresting parts of long object diffs #497

porridge opened this issue Nov 15, 2023 · 0 comments · Fixed by #498

Comments

@porridge
Copy link
Member

What happened:

Assert on something like a Deployment, for example:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: central
status:
  availableReplicas: 1

and the deployment's spec is non-trivial, you get this massive literally a few hundred lines long diff which mostly consists of metadata.managedFields (see #370) and contents of spec which is mostly irrelevant with the above assertion. This verbosity makes it somewhat hard to navigate the kuttl output, especially if you assert against several such deployments in single step.

What you expected to happen:

The pretty-diff output should omit long unnecessary fields.

How to reproduce it (as minimally and precisely as possible):

See the test case in the PR which is coming up soon.

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

Successfully merging a pull request may close this issue.

1 participant