Skip to content

Commit

Permalink
Swagger change for ignore-pod-disruption-budget (#18548)
Browse files Browse the repository at this point in the history
* Swagger change for ignore-pod-disruption-budget

* Change ignorePodDisruptionBudget to string in example file.

* Change ignorePodDisruptionBudget to boolean type.
  • Loading branch information
Tong Chen authored Apr 8, 2022
1 parent d737a1c commit 0ebd7ba
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"api-version": "2022-03-02-preview",
"subscriptionId": "subid1",
"resourceGroupName": "rg1",
"resourceName": "clustername1",
"agentPoolName": "agentpool1",
"ignorePodDisruptionBudget": true
},
"responses": {
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,9 @@
},
{
"$ref": "#/parameters/ResourceNameParameter"
},
{
"$ref": "#/parameters/IgnorePodDisruptionBudgetParameter"
}
],
"responses": {
Expand Down Expand Up @@ -1119,6 +1122,9 @@
"required": true,
"type": "string",
"description": "The name of the agent pool."
},
{
"$ref": "#/parameters/IgnorePodDisruptionBudgetParameter"
}
],
"responses": {
Expand All @@ -1139,6 +1145,9 @@
"x-ms-examples": {
"Delete Agent Pool": {
"$ref": "./examples/AgentPoolsDelete.json"
},
"Delete Agent Pool by ignoring PodDisruptionBudget": {
"$ref": "./examples/AgentPoolsDelete_IgnorePodDisruptionBudget.json"
}
}
}
Expand Down Expand Up @@ -6350,6 +6359,14 @@
},
"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.",
"x-ms-parameter-location": "method"
},
"IgnorePodDisruptionBudgetParameter": {
"name": "ignore-pod-disruption-budget",
"in": "query",
"required": false,
"type": "boolean",
"description": "ignore-pod-disruption-budget=true to delete those pods on a node without considering Pod Disruption Budget",
"x-ms-parameter-location": "method"
}
}
}

0 comments on commit 0ebd7ba

Please sign in to comment.