Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Read-only tool to check metadata.ownerReferences.

License

NotificationsYou must be signed in to change notification settings

kubernetes-sigs/kubectl-check-ownerreferences

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 install

To use:

  1. Ensure kubectl can speak to the cluster you want to check:
kubectl version
Client Version: ...Server Version: ...
  1. Invokekubectl-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:

  1. Discovers available resources in your cluster
  2. Lists the metadata for each resource, building a set of existing objects in the cluster
  3. Sweeps theownerReferences for existing objects, and makes sure the referenced owners:
    1. exist
    2. have a matching kind
    3. have a matching name
    4. are in the correct namespace (or are cluster-scoped)
    5. are referenced via a resolveableapiVersion

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 tostdout with-o json

  • Increase verbosity with--v (levels 2-9) to see more details about the requests being made

  • Increase or decrease the speed with which API requests are made with--qps and--burst

About

Read-only tool to check metadata.ownerReferences.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2026 Movatter.jp