Skip to content

kubectl view-utilization broken #54

@JJJJJones

Description

@JJJJJones

Describe the bug
Kubectl plugin naming conventions dictates that anything hyphen-separated is a subcommand so kubectl-view-utilization should be called like kubectl view utilization and not kubectl view-utilization.

sh-4.2# kubectl plugin list
The following compatible plugins are available:

/usr/local/bin/kubectl-grep
/usr/local/bin/kubectl-ingress_nginx
/usr/local/bin/kubectl-view-utilization
sh-4.2# kubectl-view-utilization -v
v0.3.2
sh-4.2# kubectl view utilization
The connection to the server localhost:8080 was refused - did you specify the right host or port?
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Resource  Requests  %Requests  Limits  %Limits  Allocatable  Schedulable  Free
CPU                       Err              Err                         0     0
Memory           0        Err              Err            0            0     0
sh-4.2# kubectl view-utilization
Error: unknown command "view-utilization" for "kubectl"
Run 'kubectl --help' for usage.
sh-4.2#

System details

  • Operating system that client is running
    MacOS 10.15.3, CentOS7/8, Docker 2.2.0.4
  • kubectl client and server version kubectl version
    1.16.6
  • view-utilization plugin version kubectl view-utilization -v
    kubectl view-utilization -v is precisely what doesn't work :) but its v0.3.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions