• 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
..
fuzzer Loading commit data...
helper Loading commit data...
install Loading commit data...
pods Loading commit data...
v1 Loading commit data...
validation Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
annotation_key_constants.go Loading commit data...
doc.go Loading commit data...
field_constants.go Loading commit data...
json.go Loading commit data...
objectreference.go Loading commit data...
register.go Loading commit data...
resource.go Loading commit data...
taint.go Loading commit data...
taint_test.go Loading commit data...
toleration.go Loading commit data...
toleration_test.go Loading commit data...
types.go Loading commit data...
zz_generated.deepcopy.go Loading commit data...