• Kubernetes Submit Queue's avatar
    Merge pull request #51252 from andyzhangx/azuredisk-windows · 39659ac1
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    Azuredisk mount on windows node
    
    **What this PR does / why we need it**:
    This PR will enable azure disk on windows node, customer could create a pod mounted with azure disk on windows node. 
    There are a few pending items still left:
    1) Current fstype would be forced as NTFS, will change if there is such requirement
    2) GetDeviceNameFromMount function is not implemented(empty) because in Linux, we could use "cat /proc/mounts" to read all mounting points in OS easily, but in Windows, there is no such place, I am still figuring out. The empty function would cause a few warning logging, but it will not affect the main logic now.
    
    **Special notes for your reviewer**:
    1. This PR depends on https://github.com/kubernetes/kubernetes/pull/51240, which allow windows mount path in config validation
    2. There is a bug in docker on windows(https://github.com/moby/moby/issues/34729), the ContainerPath could only be a drive letter now(e.g. D:), dir path would fail in the end.
    
    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
    39659ac1
Name
Last commit
Last update
.github Loading commit data...
Godeps Loading commit data...
api Loading commit data...
build Loading commit data...
cluster Loading commit data...
cmd Loading commit data...
docs Loading commit data...
examples Loading commit data...
federation Loading commit data...
hack Loading commit data...
logo Loading commit data...
pkg Loading commit data...
plugin Loading commit data...
staging Loading commit data...
test Loading commit data...
third_party Loading commit data...
translations Loading commit data...
vendor Loading commit data...
.bazelrc Loading commit data...
.generated_files Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.kazelcfg.json Loading commit data...
BUILD.bazel Loading commit data...
CHANGELOG.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
Makefile.generated_files Loading commit data...
OWNERS Loading commit data...
OWNERS_ALIASES Loading commit data...
README.md Loading commit data...
SUPPORT.md Loading commit data...
Vagrantfile Loading commit data...
WORKSPACE Loading commit data...
code-of-conduct.md Loading commit data...
labels.yaml Loading commit data...