Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny0826 committed Mar 18, 2021
1 parent ff4a327 commit aaedd65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .krew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
8 changes: 4 additions & 4 deletions cmd/plugin/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]
}

Expand Down Expand Up @@ -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
`)
}

0 comments on commit aaedd65

Please sign in to comment.