{"id":44473761,"url":"https://github.com/leopoldxx/kube-watch-diff","last_synced_at":"2026-02-12T22:06:14.280Z","repository":{"id":57636228,"uuid":"324585316","full_name":"leopoldxx/kube-watch-diff","owner":"leopoldxx","description":"A kubectl plugin for watching resources and generating diffs.","archived":false,"fork":false,"pushed_at":"2021-01-16T10:44:43.000Z","size":42,"stargazers_count":26,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-06-20T16:34:16.907Z","etag":null,"topics":["diff","kubectl-plugin","watch"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leopoldxx.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-26T15:42:47.000Z","updated_at":"2024-05-21T11:32:11.000Z","dependencies_parsed_at":"2022-09-26T20:21:49.397Z","dependency_job_id":null,"html_url":"https://github.com/leopoldxx/kube-watch-diff","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/leopoldxx/kube-watch-diff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leopoldxx%2Fkube-watch-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leopoldxx%2Fkube-watch-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leopoldxx%2Fkube-watch-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leopoldxx%2Fkube-watch-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leopoldxx","download_url":"https://codeload.github.com/leopoldxx/kube-watch-diff/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leopoldxx%2Fkube-watch-diff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29382929,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T20:34:40.886Z","status":"ssl_error","status_checked_at":"2026-02-12T20:23:00.490Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["diff","kubectl-plugin","watch"],"created_at":"2026-02-12T22:06:12.110Z","updated_at":"2026-02-12T22:06:14.274Z","avatar_url":"https://github.com/leopoldxx.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n```txt\n____    __    ____  ___   .___________.  ______  __    __                 _______   __   _______  _______ \n\\   \\  /  \\  /   / /   \\  |           | /      ||  |  |  |      ___      |       \\ |  | |   ____||   ____|\n \\   \\/    \\/   / /  ^  \\ |---|  |----||  |---/ |  |__|  |     ( _ )     |  .--.  ||  | |  |__   |  |__   \n  \\            / /  /_\\  \\    |  |     |  |     |   __   |     / _ \\/\\   |  |  |  ||  | |   __|  |   __|  \n   \\    /\\    / /  _____  \\   |  |     |  \\----.|  |  |  |    | (_\u003e  \u003c   |  '--'  ||  | |  |     |  |\n    \\__/  \\__/ /__/     \\__\\  |__|      \\______||__|  |__|     \\___/\\/   |_______/ |__| |__|     |__|\n```\n\n# Notes\n\nA kubectl plugin for watching resources and generating diffs.\n\nIf you want to watch multiple objects, and some of them are namespace-scoped, then they must be in the same namespace.\n\n# Prerequisite\n\nThis tool need `diff` utility for files comparison, so make sure `diffutils` has already been installed.\n\u003e GNU Diffutils: https://www.gnu.org/software/diffutils/\n\nIf you want a colorful output, you can install `colordiff` wrapper for `diff` tool.\n\u003e Colordiff: https://www.colordiff.org/\n\n# Install\n\n1. You can download the release package manually:\n    \u003e https://github.com/leopoldxx/kube-watch-diff/releases\n\n2.  Or, install using the installation script:\n    \u003e curl -sfL https://raw.githubusercontent.com/leopoldxx/kube-watch-diff/master/install.sh | sh -s -- -b /usr/bin\n\n# Usage\n\nYou could use it like the examples below（install as kubectl plugin):\n\n```shell\n# watch a namespace scoped resource(use without kubectl)\nkubectl-watch pod pod1\n```\n```shell\n# watch a clusters scoped resource \nkubectl watch node node1\n```\n```shell\n# watch multiple resources in a same namespace\nkubectl watch nodes/node1  pods/pod1 pods/pod2\n```\n```shell\n# watch multiple resources using a label selector\nkubectl watch pods -l far=bar\nkubectl watch deployment,rs -l far=bar\n```\n```shell\n# watch all pods on the same node\nkubectl watch pods --field-selector spec.nodeName=192.168.1.1\n```\n```shell\n# watch 'all' category resource using label selector\nkubectl watch all -l far=bar -n test-ns\n```\n```shell\n# watch all masters\nkubectl watch node -l node-role.kubernetes.io/master=\"\"\n```\n```shell\n# watch all nodes, and record the diffs into a file\nkubectl-watch nodes --all 2\u003e/dev/null | tee nodes.diff\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleopoldxx%2Fkube-watch-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleopoldxx%2Fkube-watch-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleopoldxx%2Fkube-watch-diff/lists"}