• Kubernetes Submit Queue's avatar
    Merge pull request #57381 from niuzhenguo/get-raw-cleanup · b04c28e8
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 52912, 57381). 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>.
    
    Add more validators when run kubectl get with --raw
    
    **What this PR does / why we need it**:
    1. Make --raw and --output mutually exclusive for kubectl get cmd
    2. Add url/ParseRequestURI check for the specified raw URI
    
    **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 #57379
    
    **Special notes for your reviewer**:
    
    **Release note**:
    
    ```release-note
    NONE
    ```
    b04c28e8
get.go 23.2 KB