Alphabetize kubectl resource shortcuts list

This commit is contained in:
Tamer Tas 2015-12-07 06:04:57 +02:00
parent 810181fb7b
commit 5ac372dfce

View File

@ -88,20 +88,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