mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 12:32:03 +00:00
Merge pull request #11313 from thockin/rest-shortcut-for-ns
Add an 'ns' shortcut, tidy capital letters
This commit is contained in:
commit
b9e974b2cf
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user