Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update plugin to use Crossplane CLI #2808

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 11 additions & 14 deletions plugins/crossplane.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
plugins:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great here to have a doc header to help user with installing the cli.

# List all the resources managed by a Composite Resource
kube-lineage:
shortCut: Ctrl-X
# List all the relationships with a resource (Claim, Composite, or Managed Resource)
crossplane-trace:
shortCut: t
confirm: false
description: "Kube Lineage"
description: "Crossplane Trace"
scopes:
- all
command: sh
command: bash
background: false
args:
- -c
- >-
kubectl lineage
-d 6
--exclude-types Event,ProviderConfigUsage.aws.upbound.io,ProviderConfigUsage.kubernetes.crossplane.io
--show-group
--context $CONTEXT
$RESOURCE_NAME
$NAME
| less -K
- |
if [ -n "$NAMESPACE" ]; then
crossplane beta trace --context $CONTEXT -n $NAMESPACE $RESOURCE_NAME.$RESOURCE_GROUP $NAME | less -K
else
crossplane beta trace --context $CONTEXT $RESOURCE_NAME.$RESOURCE_GROUP $NAME | less -K
fi