• Kubernetes Submit Queue's avatar
    Merge pull request #48082 from ravisantoshgudimetla/kubectl_drain_node_conversion · d58d29d9
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 48082, 48815, 48901, 48824)
    
    Changes for typecasting node in drain
    
    **What this PR does / why we need it**:
    
    **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #48059 
    
    **Special notes for your reviewer**:
    Precursor to #44944
    
    **Release note**:
    
    ```release-note
    kubectl drain now uses PATCH instead of PUT to update the node. The node object is now of type v1 instead of using internal api.
    ```
    d58d29d9
drain.go 20.7 KB