• Kubernetes Submit Queue's avatar
    Merge pull request #62018 from andyzhangx/local-windows-path-fix · 865d3cf4
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 61147, 62236, 62018). 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>.
    
    fix local volume absolute path issue on Windows
    
    **What this PR does / why we need it**:
    remove IsAbs validation on local volume since it does not work on windows cluster, Windows absolute path `D:` is not allowed in local volume, the [validation](https://github.com/kubernetes/kubernetes/blob/master/pkg/apis/core/validation/validation.go#L1386) happens on both master and agent node, while for windows cluster, the master is Linux and agent is Windows, so `path.IsAbs()` func will not work all in both nodes. 
    **Instead**, this PR use `MakeAbsolutePath` func to convert `local.path` value in kubelet, it supports both linux and windows styple. 
    
    **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 #62016
    
    **Special notes for your reviewer**:
    
    **Release note**:
    
    ```
    fix local volume absolute path issue on Windows
    ```
    /sig storage
    /sig windows
    865d3cf4
Name
Last commit
Last update
..
abac Loading commit data...
admission Loading commit data...
admissionregistration Loading commit data...
apps Loading commit data...
authentication Loading commit data...
authorization Loading commit data...
autoscaling Loading commit data...
batch Loading commit data...
certificates Loading commit data...
componentconfig Loading commit data...
core Loading commit data...
events Loading commit data...
extensions Loading commit data...
imagepolicy Loading commit data...
networking Loading commit data...
policy Loading commit data...
rbac Loading commit data...
scheduling Loading commit data...
settings Loading commit data...
storage Loading commit data...
OWNERS Loading commit data...