- Notifications
You must be signed in to change notification settings - Fork8
Read-only tool to check metadata.ownerReferences.
License
kubernetes-sigs/kubectl-check-ownerreferences
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
kubectl-check-ownerreferences is a read-only tool that identifies objects with potentiallyproblematic items inmetadata.ownerReferences. Seehttp://issue.k8s.io/65200andhttp://issue.k8s.io/92743 for more context.
To download:
Pre-built binaries are available for thelatest release for darwin and linux.
To install from source:
git clone https://github.com/kubernetes-sigs/kubectl-check-ownerreferences.gitcd kubectl-check-ownerreferencesmake installTo use:
- Ensure kubectl can speak to the cluster you want to check:
kubectl version
Client Version: ...Server Version: ...
- Invoke
kubectl-check-ownerreferences, and it will read items from the same cluster askubectl:
kubectl-check-ownerreferences
No invalid ownerReferences found
Details
kubectl-check-ownerreferences does the following:
- Discovers available resources in your cluster
- Lists the metadata for each resource, building a set of existing objects in the cluster
- Sweeps the
ownerReferencesfor existing objects, and makes sure the referenced owners:- exist
- have a matching kind
- have a matching name
- are in the correct namespace (or are cluster-scoped)
- are referenced via a resolveable
apiVersion
Error handling
If some resources cannot be discovered or listed,kubectl-check-ownerreferences will output warnings tostderr and continue.
If some child objects have ownerReferences that refer to theundiscoverable or unlistable resources, warnings will be printed tostderr.
If parent objects are deleted or child objects are createdwhilekubectl-check-ownerreferences is running, false positives can be reported.
Options
Output machine-readable results to
stdoutwith-o jsonIncrease verbosity with
--v(levels 2-9) to see more details about the requests being madeIncrease or decrease the speed with which API requests are made with
--qpsand--burst
About
Read-only tool to check metadata.ownerReferences.
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Contributors3
Uh oh!
There was an error while loading.Please reload this page.