mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +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",
|
||||
"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
|
||||
|
Loading…
Reference in New Issue
Block a user