Skip to content

Commit 0ebd7ba

Browse files
author
Tong Chen
authored
Swagger change for ignore-pod-disruption-budget (#18548)
* Swagger change for ignore-pod-disruption-budget * Change ignorePodDisruptionBudget to string in example file. * Change ignorePodDisruptionBudget to boolean type.
1 parent d737a1c commit 0ebd7ba

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-03-02-preview",
4+
"subscriptionId": "subid1",
5+
"resourceGroupName": "rg1",
6+
"resourceName": "clustername1",
7+
"agentPoolName": "agentpool1",
8+
"ignorePodDisruptionBudget": true
9+
},
10+
"responses": {
11+
"202": {},
12+
"204": {}
13+
}
14+
}

specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/managedClusters.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,9 @@
664664
},
665665
{
666666
"$ref": "#/parameters/ResourceNameParameter"
667+
},
668+
{
669+
"$ref": "#/parameters/IgnorePodDisruptionBudgetParameter"
667670
}
668671
],
669672
"responses": {
@@ -1119,6 +1122,9 @@
11191122
"required": true,
11201123
"type": "string",
11211124
"description": "The name of the agent pool."
1125+
},
1126+
{
1127+
"$ref": "#/parameters/IgnorePodDisruptionBudgetParameter"
11221128
}
11231129
],
11241130
"responses": {
@@ -1139,6 +1145,9 @@
11391145
"x-ms-examples": {
11401146
"Delete Agent Pool": {
11411147
"$ref": "./examples/AgentPoolsDelete.json"
1148+
},
1149+
"Delete Agent Pool by ignoring PodDisruptionBudget": {
1150+
"$ref": "./examples/AgentPoolsDelete_IgnorePodDisruptionBudget.json"
11421151
}
11431152
}
11441153
}
@@ -6350,6 +6359,14 @@
63506359
},
63516360
"description": "Only apply to AAD clusters, specifies the format of returned kubeconfig. Format 'azure' will return azure auth-provider kubeconfig; format 'exec' will return exec format kubeconfig, which requires kubelogin binary in the path.",
63526361
"x-ms-parameter-location": "method"
6362+
},
6363+
"IgnorePodDisruptionBudgetParameter": {
6364+
"name": "ignore-pod-disruption-budget",
6365+
"in": "query",
6366+
"required": false,
6367+
"type": "boolean",
6368+
"description": "ignore-pod-disruption-budget=true to delete those pods on a node without considering Pod Disruption Budget",
6369+
"x-ms-parameter-location": "method"
63536370
}
63546371
}
63556372
}

0 commit comments

Comments
 (0)