Commit f525c2e5 authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #18268 from tmrts/sort/constants

Auto commit by PR queue bot
parents 029d9060 5ac372df
......@@ -98,20 +98,20 @@ func expandResourceShortcut(resource string) string {
shortForms := map[string]string{
// Please keep this alphabetized
"cs": "componentstatuses",
"ev": "events",
"ds": "daemonsets",
"ep": "endpoints",
"ev": "events",
"hpa": "horizontalpodautoscalers",
"ing": "ingresses",
"limits": "limitranges",
"no": "nodes",
"ns": "namespaces",
"po": "pods",
"pv": "persistentvolumes",
"pvc": "persistentvolumeclaims",
"pv": "persistentvolumes",
"quota": "resourcequotas",
"rc": "replicationcontrollers",
"ds": "daemonsets",
"svc": "services",
"ing": "ingresses",
}
if expanded, ok := shortForms[resource]; ok {
return expanded
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment