From aaedd65539a1de897ae79029dfd52a7a6bb6d2e4 Mon Sep 17 00:00:00 2001 From: guoxudong Date: Thu, 18 Mar 2021 13:44:26 +0800 Subject: [PATCH] fix --- .krew.yaml | 6 +++--- cmd/plugin/cli/root.go | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.krew.yaml b/.krew.yaml index 16b19f9..559890a 100644 --- a/.krew.yaml +++ b/.krew.yaml @@ -38,8 +38,8 @@ spec: - from: LICENSE to: "." bin: "pod-lens.exe" - shortDescription: Sniffing pod-related resources - homepage: https://github.com/sunny0826/kubectl-pod-lens + shortDescription: Show pod-related resources + homepage: https://pod-lens.guoxudong.io description: | Find related workloads, namespace, node, service, configmap, secret, - ingress and HPA by pod name and display them in a tree and table. + ingress, PVC and HPA by pod name and display them in a tree and table. diff --git a/cmd/plugin/cli/root.go b/cmd/plugin/cli/root.go index a15acbc..51b2497 100644 --- a/cmd/plugin/cli/root.go +++ b/cmd/plugin/cli/root.go @@ -25,7 +25,7 @@ var ( func RootCmd() *cobra.Command { cmd := &cobra.Command{ Use: "kubectl pod-lens [pod name]", - Short: "View pod related resources.", + Short: "Show pod related resources.", Long: printLogo(), Example: ` # Interactive operation @@ -40,7 +40,7 @@ $ kubectl pod-lens prometheus-prometheus-operator-prometheus-0 }, RunE: func(cmd *cobra.Command, args []string) error { var podName string - if len(args) > 1 { + if len(args) > 0 { podName = args[0] } @@ -115,7 +115,7 @@ func printLogo() string { {{|__/ }}::white Find related {{workloads}}::green|underline, {{namespace}}::green|underline, {{node}}::green|underline, {{service}}::green|underline, {{configmap}}::green|underline, {{secret}}::green|underline, -{{ingress}}::green|underline and {{HPA}}::green|underline by {{pod name}}::lightRed and display them in a {{tree}}::lightBlue and {{table}}::lightBlue. -Find more information at: {{https://github.com/sunny0826/kubectl-sniffer}}::lightMagenta|underline +{{ingress}}::green|underline {{PVC}}::green|underline and {{HPA}}::green|underline by {{pod name}}::lightRed and display them in a {{tree}}::lightBlue and {{table}}::lightBlue. +Find more information at: {{https://pod-lens.guoxudong.io/}}::lightMagenta|underline `) }