Commit bc564576 authored by Victor Marmol's avatar Victor Marmol

Merge pull request #4704 from smarterclayton/add_svc_shorthand

'svc' is a much clearer shorthand for "Service" than "se"
parents ab98cd30 09dcec57
...@@ -85,9 +85,11 @@ func (e ShortcutExpander) VersionAndKindForResource(resource string) (defaultVer ...@@ -85,9 +85,11 @@ func (e ShortcutExpander) VersionAndKindForResource(resource string) (defaultVer
// indeed a shortcut. Otherwise, will return resource unmodified. // indeed a shortcut. Otherwise, will return resource unmodified.
func expandResourceShortcut(resource string) string { func expandResourceShortcut(resource string) string {
shortForms := map[string]string{ shortForms := map[string]string{
"po": "pods", "po": "pods",
"rc": "replicationcontrollers", "rc": "replicationcontrollers",
// DEPRECATED: will be removed before 1.0
"se": "services", "se": "services",
"svc": "services",
"mi": "minions", "mi": "minions",
"ev": "events", "ev": "events",
"limits": "limitRanges", "limits": "limitRanges",
......
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