Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.69k stars 5.12k forks source link

Kubernetes Cluster Node Pool API shouldn't switch the key of node label as lower case #10763

Open neil-yechenwei opened 4 years ago

neil-yechenwei commented 4 years ago

After tested, I found Kubernetes Cluster Node Pool API would switch the key of node label as lower case. I assume it shouldn't switch it to lower case.

Http request call:

PUT https://management.azure.com/subscriptions/xx-xx-xx-xx/resourceGroups/acctestRG-aks-test02/providers/Microsoft.ContainerService/managedClusters/acctestakstest02/agentPools/kubepool02

{
    "properties": {
        "count": 1,
        "enableAutoScaling": false,
        "enableNodePublicIP": false,
        "mode": "User",
        "nodeLabels": {
            "serverGroupName": "testServerGroup"
        },
        "osType": "Linux",
        "scaleSetPriority": "Regular",
        "tags": {},
        "type": "VirtualMachineScaleSets",
        "vmSize": "Standard_DS2_v2"
    }
}

Response: image

alikhtag commented 4 years ago

this causing issues for us in terraform, would be nice to get it resolved :slightly_smiling_face:

ghost commented 3 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @qike-ms, @jwilder, @thomas1206, @seanmck.

Issue Details
After tested, I found Kubernetes Cluster Node Pool API would switch the key of node label as lower case. I assume it shouldn't switch it to lower case. Http request call: ``` PUT https://management.azure.com/subscriptions/xx-xx-xx-xx/resourceGroups/acctestRG-aks-test02/providers/Microsoft.ContainerService/managedClusters/acctestakstest02/agentPools/kubepool02 { "properties": { "count": 1, "enableAutoScaling": false, "enableNodePublicIP": false, "mode": "User", "nodeLabels": { "serverGroupName": "testServerGroup" }, "osType": "Linux", "scaleSetPriority": "Regular", "tags": {}, "type": "VirtualMachineScaleSets", "vmSize": "Standard_DS2_v2" } } ``` Response: ![image](https://user-images.githubusercontent.com/19754191/92881889-fc3b0780-f441-11ea-95e5-ffe0c59a265c.png)
Author: neil-yechenwei
Assignees: MyronFanQiu
Labels: `Container Service`, `Service Attention`, `needs-triage`
Milestone: -