mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 20:50:24 +00:00
Add a limit range resource
This commit is contained in:
@@ -143,11 +143,12 @@ func (e ShortcutExpander) VersionAndKindForResource(resource string) (defaultVer
|
||||
// indeed a shortcut. Otherwise, will return resource unmodified.
|
||||
func expandResourceShortcut(resource string) string {
|
||||
shortForms := map[string]string{
|
||||
"po": "pods",
|
||||
"rc": "replicationcontrollers",
|
||||
"se": "services",
|
||||
"mi": "minions",
|
||||
"ev": "events",
|
||||
"po": "pods",
|
||||
"rc": "replicationcontrollers",
|
||||
"se": "services",
|
||||
"mi": "minions",
|
||||
"ev": "events",
|
||||
"limits": "limitRanges",
|
||||
}
|
||||
if expanded, ok := shortForms[resource]; ok {
|
||||
return expanded
|
||||
|
Reference in New Issue
Block a user