From 6f3092a79a202da9701c797a578696f767106b34 Mon Sep 17 00:00:00 2001 From: Anumita Shenoy Date: Fri, 12 Apr 2019 09:58:44 +0530 Subject: [PATCH] Added delete to the list of commands that don't support yaml/json output format --- Tasks/KubernetesV1/src/kubernetescommand.ts | 2 +- Tasks/KubernetesV1/task.json | 2 +- Tasks/KubernetesV1/task.loc.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tasks/KubernetesV1/src/kubernetescommand.ts b/Tasks/KubernetesV1/src/kubernetescommand.ts index 8c0be4ff96e1..955c7f15c997 100644 --- a/Tasks/KubernetesV1/src/kubernetescommand.ts +++ b/Tasks/KubernetesV1/src/kubernetescommand.ts @@ -91,7 +91,7 @@ function getCommandArguments(): string { function isJsonOrYamlOutputFormatSupported(kubecommand) : boolean { - var commandsThatDontSupportYamlAndJson: string[] = ["explain", "cluster-info", "top", "cordon", "uncordon", "drain", "describe", "logs", "attach", "exec", "port-forward", "proxy", "cp", "auth", "completion", "api-versions", "config", "help", "plugin", "rollout"]; + var commandsThatDontSupportYamlAndJson: string[] = ["explain", "delete", "cluster-info", "top", "cordon", "uncordon", "drain", "describe", "logs", "attach", "exec", "port-forward", "proxy", "cp", "auth", "completion", "api-versions", "config", "help", "plugin", "rollout"]; if (commandsThatDontSupportYamlAndJson.findIndex(command => command === kubecommand) > -1) { diff --git a/Tasks/KubernetesV1/task.json b/Tasks/KubernetesV1/task.json index 8107e2cdb079..19e016456317 100644 --- a/Tasks/KubernetesV1/task.json +++ b/Tasks/KubernetesV1/task.json @@ -14,7 +14,7 @@ "version": { "Major": 1, "Minor": 151, - "Patch": 1 + "Patch": 2 }, "demands": [], "releaseNotes": "What's new in Version 1.0:
 Added new service connection type input for easy selection of Azure AKS cluster.
 Replaced output variable input with output variables section that we had added in all tasks.", diff --git a/Tasks/KubernetesV1/task.loc.json b/Tasks/KubernetesV1/task.loc.json index a1ed064eff1e..83ed39dae55c 100644 --- a/Tasks/KubernetesV1/task.loc.json +++ b/Tasks/KubernetesV1/task.loc.json @@ -14,7 +14,7 @@ "version": { "Major": 1, "Minor": 151, - "Patch": 1 + "Patch": 2 }, "demands": [], "releaseNotes": "ms-resource:loc.releaseNotes",