Closed julienvey closed 3 years ago
I think make sense. Let me try to prepare a patch.
/assign
With the provided patch the following commands work:
$ export KUBECTL_EXTERNAL_DIFF="colordiff -N -u"
$ kubectl diff -f filename.yaml
/assign @seans3
/triage accepted
patch is merged, thanks for the report. /close
@dougsland: Closing this issue.
What would you like to be added:
I'd like an environment variable
KUBECTL_EXTERNAL_DIFF_OPTIONS
to be added in order to be able to customize the options when using a diff command other thandiff
when usingkubectl
The related part of the code https://github.com/kubernetes/kubectl/blob/f00cf713934555e6edd635bd7477f028056eda50/pkg/cmd/diff/diff.go#L168
Why is this needed:
When using the default diff command, the options
-u
and-N
are set by default. I'd like to have these same options when usingcolordiff
, and also be able to add any other options that might be necessary