• p0lyn0mial's avatar
    ShortcutExpander has been extended in a way that it will examine a hardcoded… · ad688d77
    p0lyn0mial authored
    ShortcutExpander has been extended in a way that it will examine a hardcoded list of tuples anticipated from the server when
    searching for an alternative name for the resource. Note that the list is ordered and the first match will yield the extended resource's name.
    
    One important thing to highlight is that the ShortcutExpander will fall back to PriorityRestMaper to determine the group for
    the resource. Also this PR introduces a new shortcut namely sc which will resolve to storageclasses within storage.k8s.io group
    
    In addition the type of kubectl.ShortForms has been changed to ResourceShortcuts struct. It has got a brand new name,
    it was also extended and ordered by group.
    ad688d77
shortcut_restmapper_test.go 2.77 KB