• 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
..
async Loading commit data...
bandwidth Loading commit data...
config Loading commit data...
configz Loading commit data...
dbus Loading commit data...
ebtables Loading commit data...
env Loading commit data...
file Loading commit data...
filesystem Loading commit data...
flock Loading commit data...
goroutinemap Loading commit data...
hash Loading commit data...
initsystem Loading commit data...
interrupt Loading commit data...
io Loading commit data...
ipconfig Loading commit data...
iptables Loading commit data...
ipvs Loading commit data...
keymutex Loading commit data...
labels Loading commit data...
limitwriter Loading commit data...
maps Loading commit data...
metrics Loading commit data...
mount Loading commit data...
net Loading commit data...
netsh Loading commit data...
node Loading commit data...
oom Loading commit data...
parsers Loading commit data...
pointer Loading commit data...
procfs Loading commit data...
reflector/prometheus Loading commit data...
removeall Loading commit data...
resourcecontainer Loading commit data...
rlimit Loading commit data...
selinux Loading commit data...
slice Loading commit data...
strings Loading commit data...
sysctl Loading commit data...
system Loading commit data...
tail Loading commit data...
taints Loading commit data...
template Loading commit data...
term Loading commit data...
threading Loading commit data...
tolerations Loading commit data...
version Loading commit data...
workqueue/prometheus Loading commit data...
BUILD Loading commit data...
verify-util-pkg.sh Loading commit data...