• Kubernetes Submit Queue's avatar
    Merge pull request #64427 from andyzhangx/azuredisk-rg · 3f581dc2
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 65032, 63471, 64104, 64672, 64427). 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>.
    
    add external resource group support for azure disk
    
    **What this PR does / why we need it**:
    add external resource group support for azure disk, 
     - without this PR, user could only create dynamic azure disk in the same resource group as cluster
     - with this PR, user could specify external resource group in PVC:
    ```
    kind: PersistentVolumeClaim
    apiVersion: v1
    metadata:
      name: pvc-azuredisk
      annotations:
        volume.beta.kubernetes.io/resource-group: "USER-SPECIFIED-RG"  
    spec:
      accessModes:
      - ReadWriteOnce
      resources:
        requests:
          storage: 1Gi
      storageClassName: hdd
    ```
    
    **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 #64388
    
    **Special notes for your reviewer**:
    Pls note above config won't change resource group for azure disk forever, next time if user don't specify resource group, only default resource group will be used.
    
    **Release note**:
    
    ```
    add external resource group support for azure disk
    ```
    /sig azure
    /assign @feiskyer @karataliu 
    /cc @khenidak
    3f581dc2
Name
Last commit
Last update
..
providers Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
README.md Loading commit data...
cloud.go Loading commit data...
doc.go Loading commit data...
plugins.go Loading commit data...