alpine-docker / k8s

All-In-One Kubernetes tools (kubectl, helm, iam-authenticator, eksctl, etc)
MIT License
211 stars 89 forks source link

Missing colordiff as external diff for kubectl #66

Closed jromelague closed 1 year ago

jromelague commented 1 year ago

Hi,

It would be nice if this image would contain the colordiff tool in order to be used as an external diff for the kubectl command.

Best regards.

ozbillwang commented 1 year ago

This image has helm-diff (latest commit) already.

Second, I went through its homepage (please confirm we are talking about the same tool): https://www.colordiff.org/

image

it needs perl, which I prefer Golang binary to keep the image size small.

jromelague commented 1 year ago

helm-diff is for helm chart. When the kubernetes resources I want to apply is not managed by an helm chart, I use kubectl and I always have in my CIs a diff stage before applying the changes to see what would be applied. kubectl have a diff command but does not manage colors in diff. I use the KUBECTL_EXTERNAL_DIFF="colordiff -N -u" environment variable with colordiff https://www.colordiff.org/ to have a better output.