A CLI tool (and k9s plugin) to quickly view and navigate through sub-resources of Kubernetes resources like Crossplane claims or Flux kustomizations.
The latest refactor is inspired by the Crossplane beta trace command.
go install github.com/nkzk/xrefs@latestxrefs view <kind>.<version>.<api-group>/<name> [flags]xrefs view my-xr.v1alpha1.example.io/name
xrefs view my-xr.v1alpha1.example.io/name -n my-namespaceI've added a helper command to help you install the cli as a k9s plugin.
This allows you to use the cli via a shortcut while selecting a resource in k9s, so you dont need to manage the cli args yourself.
The k9s plugin config is appended only, and a backup is saved to the /tmp directory.
xrefs k9s install- Navigate to an XR in k9s
- Press
Shift+Gto show XR resource references - Navigate to a resource, press
yfor yaml - Press
Esc/qto quit yaml, orCtrl+Cto quit the whole program
Vim navigation commands are supported (hjkl)
A help text is shown at the bottom for available commands.
