mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Merge pull request #18268 from tmrts/sort/constants
Auto commit by PR queue bot
This commit is contained in:
commit
f525c2e587
@ -98,20 +98,20 @@ func expandResourceShortcut(resource string) string {
|
|||||||
shortForms := map[string]string{
|
shortForms := map[string]string{
|
||||||
// Please keep this alphabetized
|
// Please keep this alphabetized
|
||||||
"cs": "componentstatuses",
|
"cs": "componentstatuses",
|
||||||
"ev": "events",
|
"ds": "daemonsets",
|
||||||
"ep": "endpoints",
|
"ep": "endpoints",
|
||||||
|
"ev": "events",
|
||||||
"hpa": "horizontalpodautoscalers",
|
"hpa": "horizontalpodautoscalers",
|
||||||
|
"ing": "ingresses",
|
||||||
"limits": "limitranges",
|
"limits": "limitranges",
|
||||||
"no": "nodes",
|
"no": "nodes",
|
||||||
"ns": "namespaces",
|
"ns": "namespaces",
|
||||||
"po": "pods",
|
"po": "pods",
|
||||||
"pv": "persistentvolumes",
|
|
||||||
"pvc": "persistentvolumeclaims",
|
"pvc": "persistentvolumeclaims",
|
||||||
|
"pv": "persistentvolumes",
|
||||||
"quota": "resourcequotas",
|
"quota": "resourcequotas",
|
||||||
"rc": "replicationcontrollers",
|
"rc": "replicationcontrollers",
|
||||||
"ds": "daemonsets",
|
|
||||||
"svc": "services",
|
"svc": "services",
|
||||||
"ing": "ingresses",
|
|
||||||
}
|
}
|
||||||
if expanded, ok := shortForms[resource]; ok {
|
if expanded, ok := shortForms[resource]; ok {
|
||||||
return expanded
|
return expanded
|
||||||
|
Loading…
Reference in New Issue
Block a user