• Kubernetes Submit Queue's avatar
    Merge pull request #51240 from andyzhangx/windows-abs-path · 87cefa08
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue. 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>.
    
    allow windows mount path
    
    **What this PR does / why we need it**:
    Currently mount path onlly allow Linux absolute path,  allow windows mount path in this PR.
    This code snippet in kubelet will run in both Linux and Windows, so use IsAbs func to tell whether it's a absolute path is not sufficient as for k8s windows cluster, the master is Linux and agent is Windows node.
    
    **Special notes for your reviewer**:
    The example pod with mount path is like below:
    ```
    ---
    kind: Pod
    apiVersion: v1
    metadata:
      name: pod-uses-shared-hdd-5g
      labels:
        name: storage
    spec:
      containers:
      - image: microsoft/iis
        name: az-c-01
        volumeMounts:
        - name: blobdisk01
          mountPath: 'F:'
      nodeSelector:
        beta.kubernetes.io/os: windows
      volumes:
      - name: blobdisk01
        persistentVolumeClaim:
          claimName: pv-dd-shared-hdd-5
    ```
    
    
    **Release note**:
    
    ```release-note
    ```
    87cefa08
Name
Last commit
Last update
..
endpoints Loading commit data...
events Loading commit data...
fuzzer Loading commit data...
helper Loading commit data...
install Loading commit data...
legacyscheme Loading commit data...
persistentvolume Loading commit data...
pod Loading commit data...
ref Loading commit data...
resource Loading commit data...
service Loading commit data...
testapi Loading commit data...
testing Loading commit data...
unversioned 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...
types.go Loading commit data...
zz_generated.deepcopy.go Loading commit data...