• Kubernetes Submit Queue's avatar
    Merge pull request #57500 from niuzhenguo/unique-resource-mappings · c338209e
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 57500, 58840, 58883). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    Make REST mappings for resources a unique list
    
    This ensures the mappings list for resources(shortcuts, plural) unique,
    instead of doing multiple requests to server for the same resource.
    
    
    
    **What this PR does / why we need it**:
    Treat resource shortcuts, plurals the same thing on kubectl side instead of doing multiple requests to servers, and outputs should not duplicate entires.
    
    **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
    Fixes #57498 
    
    **Special notes for your reviewer**:
    
    **Release note**:
    
    ```release-note
    NONE
    ```
    c338209e
Name
Last commit
Last update
..
BUILD Loading commit data...
builder.go Loading commit data...
builder_test.go Loading commit data...
doc.go Loading commit data...
helper.go Loading commit data...
helper_test.go Loading commit data...
interfaces.go Loading commit data...
mapper.go Loading commit data...
result.go Loading commit data...
selector.go Loading commit data...
visitor.go Loading commit data...
visitor_test.go Loading commit data...