mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
Update list of resources for 'kubectl get' help output.
This commit is contained in:
parent
c15953662e
commit
0426ab3290
@ -103,16 +103,21 @@ func RunGet(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string
|
|||||||
if len(args) == 0 {
|
if len(args) == 0 {
|
||||||
fmt.Fprint(out, `
|
fmt.Fprint(out, `
|
||||||
You must specify the type of resource to get. Valid resource types include:
|
You must specify the type of resource to get. Valid resource types include:
|
||||||
* pods (aka 'po')
|
* componentStatuses (aka 'cs')
|
||||||
* replicationcontrollers (aka 'rc')
|
* endpoints (aka 'ep')
|
||||||
* services
|
|
||||||
* nodes (aka 'no')
|
|
||||||
* events (aka 'ev')
|
* events (aka 'ev')
|
||||||
* secrets
|
|
||||||
* limits
|
* limits
|
||||||
* persistentVolumes (aka 'pv')
|
* namespaces
|
||||||
|
* nodes (aka 'no')
|
||||||
* persistentVolumeClaims (aka 'pvc')
|
* persistentVolumeClaims (aka 'pvc')
|
||||||
|
* persistentVolumes (aka 'pv')
|
||||||
|
* pods (aka 'po')
|
||||||
|
* podTemplates
|
||||||
* quota
|
* quota
|
||||||
|
* replicationcontrollers (aka 'rc')
|
||||||
|
* secrets
|
||||||
|
* serviceAccounts
|
||||||
|
* services
|
||||||
`)
|
`)
|
||||||
return errors.New("Required resource not specified.")
|
return errors.New("Required resource not specified.")
|
||||||
}
|
}
|
||||||
|
@ -254,6 +254,8 @@ func (h *HumanReadablePrinter) HandledResources() []string {
|
|||||||
return keys
|
return keys
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NOTE: When adding a new resource type here, please update the list
|
||||||
|
// pkg/kubectl/cmd/get.go to reflect the new resource type.
|
||||||
var podColumns = []string{"NAME", "READY", "STATUS", "RESTARTS", "AGE"}
|
var podColumns = []string{"NAME", "READY", "STATUS", "RESTARTS", "AGE"}
|
||||||
var podTemplateColumns = []string{"TEMPLATE", "CONTAINER(S)", "IMAGE(S)", "PODLABELS"}
|
var podTemplateColumns = []string{"TEMPLATE", "CONTAINER(S)", "IMAGE(S)", "PODLABELS"}
|
||||||
var replicationControllerColumns = []string{"CONTROLLER", "CONTAINER(S)", "IMAGE(S)", "SELECTOR", "REPLICAS"}
|
var replicationControllerColumns = []string{"CONTROLLER", "CONTAINER(S)", "IMAGE(S)", "SELECTOR", "REPLICAS"}
|
||||||
|
Loading…
Reference in New Issue
Block a user