Skip to content

Commit

Permalink
[AKS] Use POST operation for node image version (#10294)
Browse files Browse the repository at this point in the history
  • Loading branch information
gtxistxgao authored Aug 5, 2020
1 parent 85c0f5b commit ef362e1
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"api-version": "2020-07-01",
"subscriptionId": "subid1",
"resourceGroupName": "rg1",
"resourceName": "clustername1",
"agentPoolName": "agentpool1"
},
"responses": {
"200": {},
"202": {
"body": {
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
"name": "agentpool1",
"properties": {
"provisioningState": "UpgradingNodeImageVersion",
"count": 3,
"vmSize": "Standard_DS1_v2",
"maxPods": 110,
"osType": "Linux",
"orchestratorVersion": "1.9.6",
"nodeImageVersion": "AKSUbuntu-1604-2020.03.11",
"upgradeSettings": {
"maxSurge": "33%"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"type": "VirtualMachineScaleSets",
"enableNodePublicIP": true,
"mode": "System",
"nodeImageVersion": "AKSUbuntu:1604:2020.03.11",
"proximityPlacementGroupID": "/subscriptions/subid1/resourcegroups/rg1/providers//Microsoft.Compute/proximityPlacementGroups/ppg1"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
"3"
],
"enableNodePublicIP": true,
"mode": "System",
"nodeImageVersion": "AKSUbuntu:1604:2020.03.11"
"mode": "System"
}
],
"linuxProfile": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
"3"
],
"enableNodePublicIP": true,
"mode": "System",
"nodeImageVersion": "AKSUbuntu:1604:2020.03.11"
"mode": "System"
}
],
"linuxProfile": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
"3"
],
"enableNodePublicIP": true,
"mode": "System",
"nodeImageVersion": "AKSUbuntu:1604:2020.03.11"
"mode": "System"
}
],
"linuxProfile": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,60 @@
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeNodeImageVersion": {
"post": {
"tags": [
"AgentPools"
],
"operationId": "ManagedClusters_UpgradeNodeImageVersion",
"summary": "Upgrade node image version of an agent pool to the latest.",
"description": "Upgrade node image version of an agent pool to the latest.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/ResourceNameParameter"
},
{
"name": "agentPoolName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the agent pool."
}
],
"responses": {
"200": {
"description": "OK"
},
"202": {
"description": "Accepted",
"schema": {
"$ref": "#/definitions/AgentPool"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-examples": {
"Upgrade Agent Pool Node Image Version": {
"$ref": "./examples/AgentPoolsUpgradeNodeImageVersion.json"
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -1691,6 +1745,7 @@
"description": "Version of orchestrator specified when creating the managed cluster."
},
"nodeImageVersion": {
"readOnly": true,
"type": "string",
"description": "Version of node image"
},
Expand Down

0 comments on commit ef362e1

Please sign in to comment.