From 387901695b9fd976451349d23b86094b76fbb346 Mon Sep 17 00:00:00 2001 From: tonche Date: Mon, 4 Apr 2022 19:51:44 -0700 Subject: [PATCH 1/3] Swagger change for ignore-pod-disruption-budget --- ...ntPoolsDelete_IgnorePodDisruptionBudget.json | 14 ++++++++++++++ .../2022-03-02-preview/managedClusters.json | 17 +++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/examples/AgentPoolsDelete_IgnorePodDisruptionBudget.json diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/examples/AgentPoolsDelete_IgnorePodDisruptionBudget.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/examples/AgentPoolsDelete_IgnorePodDisruptionBudget.json new file mode 100644 index 000000000000..e78d25bfdd1d --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/examples/AgentPoolsDelete_IgnorePodDisruptionBudget.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "api-version": "2022-03-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "resourceName": "clustername1", + "agentPoolName": "agentpool1", + "ignorePodDisruptionBudget": true + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/managedClusters.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/managedClusters.json index 27c6304b1048..68eac5525cd0 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/managedClusters.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/managedClusters.json @@ -661,6 +661,9 @@ }, { "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/IgnorePodDisruptionBudgetParameter" } ], "responses": { @@ -1116,6 +1119,9 @@ "required": true, "type": "string", "description": "The name of the agent pool." + }, + { + "$ref": "#/parameters/IgnorePodDisruptionBudgetParameter" } ], "responses": { @@ -1136,6 +1142,9 @@ "x-ms-examples": { "Delete Agent Pool": { "$ref": "./examples/AgentPoolsDelete.json" + }, + "Delete Agent Pool by ignoring PodDisruptionBudget": { + "$ref": "./examples/AgentPoolsDelete_IgnorePodDisruptionBudget.json" } } } @@ -6262,6 +6271,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": "string", + "description": "ignore-pod-disruption-budget=true to delete those pods on a node without considering Pod Disruption Budget", + "x-ms-parameter-location": "method" } } } From 2f1e2622e6fbe2699cc270c1b94acaadc995d717 Mon Sep 17 00:00:00 2001 From: tonche Date: Thu, 7 Apr 2022 20:12:15 -0700 Subject: [PATCH 2/3] Change ignorePodDisruptionBudget to string in example file. --- .../examples/AgentPoolsDelete_IgnorePodDisruptionBudget.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/examples/AgentPoolsDelete_IgnorePodDisruptionBudget.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/examples/AgentPoolsDelete_IgnorePodDisruptionBudget.json index e78d25bfdd1d..f4d0b04e1190 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/examples/AgentPoolsDelete_IgnorePodDisruptionBudget.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/examples/AgentPoolsDelete_IgnorePodDisruptionBudget.json @@ -5,7 +5,7 @@ "resourceGroupName": "rg1", "resourceName": "clustername1", "agentPoolName": "agentpool1", - "ignorePodDisruptionBudget": true + "ignorePodDisruptionBudget": "true" }, "responses": { "202": {}, From acf0b61994b564c8cf8f4835d85c33f4b137e522 Mon Sep 17 00:00:00 2001 From: tonche Date: Fri, 8 Apr 2022 13:31:28 -0700 Subject: [PATCH 3/3] Change ignorePodDisruptionBudget to boolean type. --- .../examples/AgentPoolsDelete_IgnorePodDisruptionBudget.json | 2 +- .../preview/2022-03-02-preview/managedClusters.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/examples/AgentPoolsDelete_IgnorePodDisruptionBudget.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/examples/AgentPoolsDelete_IgnorePodDisruptionBudget.json index f4d0b04e1190..e78d25bfdd1d 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/examples/AgentPoolsDelete_IgnorePodDisruptionBudget.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/examples/AgentPoolsDelete_IgnorePodDisruptionBudget.json @@ -5,7 +5,7 @@ "resourceGroupName": "rg1", "resourceName": "clustername1", "agentPoolName": "agentpool1", - "ignorePodDisruptionBudget": "true" + "ignorePodDisruptionBudget": true }, "responses": { "202": {}, diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/managedClusters.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/managedClusters.json index 7fc9c1c390e5..b6e91af68ab9 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/managedClusters.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-03-02-preview/managedClusters.json @@ -6312,7 +6312,7 @@ "name": "ignore-pod-disruption-budget", "in": "query", "required": false, - "type": "string", + "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" }