Another watch tool with visualization view of delta change for kubernetes resources.
| overview of using delta diff tool | overview of using difftastic diff tool |
| :------------------------------------------------: | :------------------------------------------------: |
| |
|
Docker should be preinstalled, more installation details please visit official website.
copy the kubectl-watch script into your $PATH folder
bash
cp script/kubectl-watch /usr/local/bin/
chmod +x /usr/local/bin/kubectl-watch
bash
cargo install kubectl-watch --locked
```bash USAGE: kubectl-watch [OPTIONS] [ARGS]
ARGS:
OPTIONS:
-A, --all If present, list the requested object(s) across all namespaces
--diff-tool
watch deploy in all namespace
bash
kubectl-watch deployment -A
watch deploy on some namespace
bash
kubectl-watch deployment -n {namespace}
watch without delta view, just add --skip-delta
flag.
bash
kubectl-watch {resource} --delta
watch with delta view by using difftastic
tool, just add --diff-tool difft
bash
kubectl-watch {resource} --diff-tool difft
export watched resources into local storage, just add --export "/to/your/path"
bash
kubectl-watch {resource} --export "/to/your/path"
managed-fields
will be default excluded, add --include-managed-fields
can show the managed fields changes.
bash
kubectl-watch {resource} -include-managed-fields