Commit b9e974b2 authored by Vish Kannan's avatar Vish Kannan

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

Add an 'ns' shortcut, tidy capital letters
parents 11940011 30697aee
......@@ -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
......
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