• 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
..
api Loading commit data...
apimachinery/tests Loading commit data...
apis Loading commit data...
auth Loading commit data...
bootstrap/api Loading commit data...
capabilities Loading commit data...
client Loading commit data...
cloudprovider Loading commit data...
controller Loading commit data...
credentialprovider Loading commit data...
features Loading commit data...
fieldpath Loading commit data...
generated Loading commit data...
hyperkube Loading commit data...
kubeapiserver Loading commit data...
kubectl Loading commit data...
kubelet Loading commit data...
kubemark Loading commit data...
master Loading commit data...
printers Loading commit data...
probe Loading commit data...
proxy Loading commit data...
quota Loading commit data...
registry Loading commit data...
routes Loading commit data...
security Loading commit data...
securitycontext Loading commit data...
serviceaccount Loading commit data...
ssh Loading commit data...
util Loading commit data...
version Loading commit data...
volume Loading commit data...
watch Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...