KO
|
EN
gitlite โ search
Search
#typescript
#ai-agents
#ai
#dsh-plugin
#deepseek-harness
#open-source
#cli
#claude-code
#codex
#developer-tools
#react
#windows
kubectl-blame
โ 154
Open GitHub โ
Show who edited resource fields.
Download README (.md)
Explore Similar Repositories
vue3-date-time-picker
:
Datepicker component for Vue 3
totp.js
:
๐ฒTOTP(Time-based one-time password) generator, support for Google Authenticator
json-ld
:
JSON-LD implementation for Rust
git_ops
:
A tool for version and changelog management in Elixir via conventional commits.
RayTracer.jl
:
Differentiable RayTracing in Julia
// repository documentation
Was this content helpful?
โ 0
(0 ratings)
Select Rating:
โ
โ
โ
โ
โ
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
kubectl-blame
?
Download (.md)
kubectl-blame: git-like blame for kubectl ======    Annotate each line in the given resource's YAML with information from the managedFields to show who last modified the field. As long as the field `.metadata.manageFields` of the resource is set properly, this command is able to display the manager of each field. `kubectl-blame` can work in two ways: 1. **Directly from the cluster** โ fetch and blame resources in one step: ``` kubectl blame deployments my-app ``` 2. **From piped input** โ use `kubectl get` (or any command that outputs YAML/JSON) and pipe the result: ``` kubectl get deployments -o yaml | kubectl blame ``` This also works with Kubernetes List objects (e.g., `kind: List`), so you can pipe the output of `kubectl get` which wraps multiple resources in a List. [](https://asciinema.org/a/375008) ## Installing | Distribution | Command / Link | |----------------------------------------|------------------------------------------------------------------------| | [Krew](https://krew.sigs.k8s.io/) | `kubectl krew install blame` | | Pre-built binaries for macOS, Linux | [GitHub releases](https://github.com/knight42/kubectl-blame/releases) | ## Usage ``` # Blame pod 'foo' in default namespace kubectl blame pods foo # Blame deployment 'foo' and 'bar' in 'ns1' namespace kubectl blame -n ns1 deploy foo bar # Blame deployment 'bar' in 'ns1' namespace and hide the update time kubectl blame -n ns1 --time none deploy bar # Blame resources in file 'pod.yaml'(will access remote server) kubectl blame -f pod.yaml # Blame deployment saved in local file 'deployment.yaml'(will NOT access remote server) kubectl blame -i deployment.yaml # Or pipe from stdin (auto-detected) cat deployment.yaml | kubectl blame ``` ### Flags | flag | default | description | |--------------------|------------|--------------------------------------------------------------------------| | `--time` | `relative` | Time format. One of: `full`, `relative`, `none`. | | `--color` | `auto` | Color output. One of: `auto`, `always`, `never`. | | `--filename`, `-f` | | Filename identifying the resource to get from a server. | | `--input`, `-i` | `auto` | Read object from the given file. When set to `auto`, automatically read from stdin if piped. Use `-` to force reading from stdin. |