kubernetes-sigs / cli-experimental

Experimental Kubectl libraries and commands.
Apache License 2.0
84 stars 218 forks source link

autoscale : unknown command "hpa" for "kubectl" #354

Open ibnjunaid opened 1 year ago

ibnjunaid commented 1 year ago

On the kubectl documentation page its written that we can also use kubectl hpa (-f FILENAME | TYPE NAME | TYPE/NAME) [--min=MINPODS] --max=MAXPODS [--cpu-percent=CPU] to create horizontal pod autoscalers but when I tried to run the command I got the following message error: unknown command "hpa" for "kubectl" Did you mean this? cp

Following is my output of kubectl version Client Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.2", GitCommit:"7f6f68fdabc4df88cfea2dcf9a19b2b830f1e647", GitTreeState:"clean", BuildDate:"2023-05-17T14:20:07Z", GoVersion:"go1.20.4", Compiler:"gc", Platform:"linux/amd64"} Kustomize Version: v5.0.1 Server Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.1", GitCommit:"4c9411232e10168d7b050c49a1b59f6df9d7ea4b", GitTreeState:"clean", BuildDate:"2023-05-12T19:03:40Z", GoVersion:"go1.20.3", Compiler:"gc", Platform:"linux/amd64"}

Is this is a typo in the documentation page or there is supposed to be a kubectl hpa command.

Ritikaa96 commented 1 year ago

I checked and the error is there. It is not present in the code as well , it can be an upcoming feature/enhancement. It is supposed to be like autoscale alias more than whole new command so adding one in kubectl/autoscale.go will help

k8s-triage-robot commented 8 months ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

Ritikaa96 commented 8 months ago

I think this is an error if there is no discussion of making it a command . WDYT /sig cli

Ritikaa96 commented 8 months ago

/remove-lifecycle stale

k8s-triage-robot commented 5 months ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot commented 4 months ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

Ritikaa96 commented 3 months ago

This issue is worth a discussion/review /remove-lifecycle rotten

k8s-triage-robot commented 3 weeks ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

Ritikaa96 commented 2 weeks ago

/remove-lifecycle stale This is a bug in current docs. i would like to correct it if triage is accepted. @seans3 @KnVerey @pwittrock WDYT?