Add an 'ns' shortcut, tidy capital letters

This commit is contained in:
Tim Hockin 2015-07-15 09:50:11 -07:00
parent 8f3c3108b8
commit 30697aeef2

View File

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