'svc' is a much clearer shorthand for "Service" than "se"

This commit is contained in:
Clayton Coleman 2015-02-21 18:17:52 -05:00
parent 86a0193f51
commit 09dcec57fb

View File

@ -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",