Open madhukar93 opened 3 years ago
Thanks for the question. I will have a look at it tomorrow. I assume I can take some Kubernetes related examples to try to reproduce the issue, right?
Yes. Assuming that the versions of kubernetes, kubectl are irrelevant, any example should work. Thanks!
I am pretty busy at the moment, but I still have this on my agenda.
Hey, thanks for bumping this. I muddled through what I wanted to do, but I'll also take a better look when I get time.
This is being caused by kubectl
itself, as it will not allow the required characters for any of the filter
, filter-regexp
, exclude
or exclude-regexp
flags. See character restrictions here.
Can work around this by creating a script in your path with the following code, and using that as your KUBECTL_EXTERNAL_DIFF
$ cat _kc_diff
#!/usr/bin/env bash
dyff between --exclude=metadata.generation --set-exit-code --omit-header "$1" "$2"
$ export KUBECTL_EXTERNAL_DIFF="_kc_diff"
I'm trying to only see diffs in the
spec
s using #160 (similar to the original usecase #157 - trying to exclude metadata because it has server generated annotations I want to ignore) the following still reports diffs inmetadata
-I've tried variations with`--filter=/spec' and such, but haven't got the desired result, what am I missing?