-
Notifications
You must be signed in to change notification settings - Fork 69
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
Support for diffing kubernetes configmap content #171
Comments
I think I know what you mean. Will have a look. |
I think what is meant is that the content of the data field is not canonicalized before comparison. In the specific example I have the first ConfigMap has a big embedded string, while the second is inline text:
Versus
|
This makes perfect sense. Thanks for the example. I tried something like that some time ago to improve the output for multi-line strings. Back then, the context was to get a better output when comparing certificates. I am not a super big fan of my code from back then, but my idea was to simplify and unify what was done and apply it with regards to the context of Kubernetes ConfigMaps. Originally, |
We would like to take advantage of this in Flux where we use |
Fixes #171 Add human friendly difference output for multiline texts similar to the one used by the minor change output.
Fixes #171 Add human friendly difference output for multiline texts similar to the one used by the minor change output.
Right now,
dyff
treats configmaps like every other resource, which means that if there's a one-line difference in a hundred-line file,dyff
will print all 100 lines of both old and new content.It'd be nice if
dyff
detected that a resource was a configmap and diffed the content instead of treating values in the configmap as atomic. (I hope that makes sense.)The text was updated successfully, but these errors were encountered: