From f1ee374dc0bf1677d4a3522dd3fc5edca11e22f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Blaise?= <32685572+clementblaise@users.noreply.github.com> Date: Wed, 24 Jul 2024 16:43:09 +0800 Subject: [PATCH] use crossplane CLI --- plugins/crossplane.yaml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/plugins/crossplane.yaml b/plugins/crossplane.yaml index 14d7915e3f..08c5777eb3 100644 --- a/plugins/crossplane.yaml +++ b/plugins/crossplane.yaml @@ -1,21 +1,18 @@ plugins: - # 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