Commit 30697aee authored by Tim Hockin's avatar Tim Hockin

Add an 'ns' shortcut, tidy capital letters

parent 8f3c3108
...@@ -106,16 +106,16 @@ func expandResourceShortcut(resource string) string { ...@@ -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
......
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