Merge pull request #11313 from thockin/rest-shortcut-for-ns

Add an 'ns' shortcut, tidy capital letters
This commit is contained in:
Vish Kannan 2015-07-23 10:14:33 -07:00
commit b9e974b2cf

View File

@ -106,16 +106,16 @@ func expandResourceShortcut(resource string) string {
"cs": "componentstatuses", "cs": "componentstatuses",
"ev": "events", "ev": "events",
"ep": "endpoints", "ep": "endpoints",
"limits": "limitRanges", "limits": "limitranges",
"no": "nodes", "no": "nodes",
"ns": "namespaces",
"po": "pods", "po": "pods",
"pv": "persistentVolumes", "pv": "persistentvolumes",
"pvc": "persistentVolumeClaims", "pvc": "persistentvolumeclaims",
"quota": "resourceQuotas", "quota": "resourcequotas",
"rc": "replicationcontrollers", "rc": "replicationcontrollers",
// DEPRECATED: will be removed before 1.0 "se": "services", // DEPRECATED: will be removed before 1.0
"se": "services", "svc": "services",
"svc": "services",
} }
if expanded, ok := shortForms[resource]; ok { if expanded, ok := shortForms[resource]; ok {
return expanded return expanded