From 91bf7d7dbaab387535dd4b1b75473a4a1dfafbc0 Mon Sep 17 00:00:00 2001 From: "Deeksitha Merugu (LTIMINDTREE LIMITED)" Date: Thu, 30 Jan 2025 12:12:21 +0530 Subject: [PATCH 1/6] Added Missing commands in HelmDeployV1 --- Tasks/HelmDeployV1/package-lock.json | 71 +++++++++---------- Tasks/HelmDeployV1/src/helm.ts | 6 +- .../src/helmcommands/helmcreate.ts | 11 +++ .../HelmDeployV1/src/helmcommands/helmpush.ts | 5 +- .../src/helmcommands/helmrollback.ts | 16 +++++ .../src/helmcommands/helmuninstall.ts | 16 +++++ Tasks/HelmDeployV1/task.json | 19 +++-- Tasks/HelmDeployV1/task.loc.json | 2 +- _generated/HelmDeployV1.versionmap.txt | 4 +- .../resources.resjson/en-US/resources.resjson | 2 + _generated/HelmDeployV1/package-lock.json | 71 +++++++++---------- _generated/HelmDeployV1/src/helm.ts | 6 +- .../src/helmcommands/helmcreate.ts | 11 +++ .../HelmDeployV1/src/helmcommands/helmpush.ts | 5 +- .../src/helmcommands/helmrollback.ts | 16 +++++ .../src/helmcommands/helmuninstall.ts | 16 +++++ _generated/HelmDeployV1/task.json | 23 ++++-- _generated/HelmDeployV1/task.loc.json | 23 ++++-- .../resources.resjson/en-US/resources.resjson | 2 + _generated/HelmDeployV1_Node20/src/helm.ts | 6 +- .../src/helmcommands/helmcreate.ts | 11 +++ .../src/helmcommands/helmpush.ts | 5 +- .../src/helmcommands/helmrollback.ts | 16 +++++ .../src/helmcommands/helmuninstall.ts | 16 +++++ _generated/HelmDeployV1_Node20/task.json | 23 ++++-- _generated/HelmDeployV1_Node20/task.loc.json | 23 ++++-- 26 files changed, 310 insertions(+), 115 deletions(-) create mode 100644 Tasks/HelmDeployV1/src/helmcommands/helmcreate.ts create mode 100644 Tasks/HelmDeployV1/src/helmcommands/helmrollback.ts create mode 100644 Tasks/HelmDeployV1/src/helmcommands/helmuninstall.ts create mode 100644 _generated/HelmDeployV1/src/helmcommands/helmcreate.ts create mode 100644 _generated/HelmDeployV1/src/helmcommands/helmrollback.ts create mode 100644 _generated/HelmDeployV1/src/helmcommands/helmuninstall.ts create mode 100644 _generated/HelmDeployV1_Node20/src/helmcommands/helmcreate.ts create mode 100644 _generated/HelmDeployV1_Node20/src/helmcommands/helmrollback.ts create mode 100644 _generated/HelmDeployV1_Node20/src/helmcommands/helmuninstall.ts diff --git a/Tasks/HelmDeployV1/package-lock.json b/Tasks/HelmDeployV1/package-lock.json index de2c7cd03a61..596b989080b5 100644 --- a/Tasks/HelmDeployV1/package-lock.json +++ b/Tasks/HelmDeployV1/package-lock.json @@ -195,6 +195,33 @@ "typed-rest-client": "2.1.0" } }, + "msalv1": { + "version": "npm:@azure/msal-node@1.18.4", + "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/@azure/msal-node/-/msal-node-1.18.4.tgz", + "integrity": "sha1-ySGwRHyS+zsMsev1qadvytLsfCE=", + "requires": { + "@azure/msal-common": "13.3.1", + "jsonwebtoken": "^9.0.0", + "uuid": "^8.3.0" + } + }, + "msalv2": { + "version": "npm:@azure/msal-node@2.16.2", + "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/@azure/msal-node/-/msal-node-2.16.2.tgz", + "integrity": "sha1-Prdo02iD6m+ak5wLW0Z7UY54//w=", + "requires": { + "@azure/msal-common": "14.16.0", + "jsonwebtoken": "^9.0.0", + "uuid": "^8.3.0" + }, + "dependencies": { + "@azure/msal-common": { + "version": "14.16.0", + "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/@azure/msal-common/-/msal-common-14.16.0.tgz", + "integrity": "sha1-80cPyux4jb5QhZlSzUmTQL2iPXo=" + } + } + }, "typed-rest-client": { "version": "2.1.0", "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/typed-rest-client/-/typed-rest-client-2.1.0.tgz", @@ -206,6 +233,11 @@ "tunnel": "0.0.6", "underscore": "^1.12.1" } + }, + "uuid": { + "version": "8.3.2", + "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha1-gNW1ztJxu5r2xEXyGhoExgbO++I=" } } }, @@ -868,45 +900,6 @@ "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, - "msalv1": { - "version": "npm:@azure/msal-node@1.18.4", - "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/@azure/msal-node/-/msal-node-1.18.4.tgz", - "integrity": "sha1-ySGwRHyS+zsMsev1qadvytLsfCE=", - "requires": { - "@azure/msal-common": "13.3.1", - "jsonwebtoken": "^9.0.0", - "uuid": "^8.3.0" - }, - "dependencies": { - "uuid": { - "version": "8.3.2", - "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha1-gNW1ztJxu5r2xEXyGhoExgbO++I=" - } - } - }, - "msalv2": { - "version": "npm:@azure/msal-node@2.16.2", - "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/@azure/msal-node/-/msal-node-2.16.2.tgz", - "integrity": "sha1-Prdo02iD6m+ak5wLW0Z7UY54//w=", - "requires": { - "@azure/msal-common": "14.16.0", - "jsonwebtoken": "^9.0.0", - "uuid": "^8.3.0" - }, - "dependencies": { - "@azure/msal-common": { - "version": "14.16.0", - "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/@azure/msal-common/-/msal-common-14.16.0.tgz", - "integrity": "sha1-80cPyux4jb5QhZlSzUmTQL2iPXo=" - }, - "uuid": { - "version": "8.3.2", - "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha1-gNW1ztJxu5r2xEXyGhoExgbO++I=" - } - } - }, "node-fetch": { "version": "2.7.0", "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/node-fetch/-/node-fetch-2.7.0.tgz", diff --git a/Tasks/HelmDeployV1/src/helm.ts b/Tasks/HelmDeployV1/src/helm.ts index 92d6a8858ce3..2db5469c158b 100644 --- a/Tasks/HelmDeployV1/src/helm.ts +++ b/Tasks/HelmDeployV1/src/helm.ts @@ -145,7 +145,11 @@ async function runHelm(helmCli: helmcli, command: string, kubectlCli: kubernetes "package": "./helmcommands/helmpackage", "push": "./helmcommands/helmpush", "registry": "./helmcommands/helmregistrylogin", - "upgrade": "./helmcommands/helmupgrade" + "upgrade": "./helmcommands/helmupgrade", + "rollback": "./helmcommands/helmrollback", + "uninstall": "./helmcommands/helmuninstall", + "delete": "./helmcommands/helmuninstall", + "create": "./helmcommands/helmcreate", } var commandImplementation = require("./helmcommands/uinotimplementedcommands"); diff --git a/Tasks/HelmDeployV1/src/helmcommands/helmcreate.ts b/Tasks/HelmDeployV1/src/helmcommands/helmcreate.ts new file mode 100644 index 000000000000..c9a659327bb1 --- /dev/null +++ b/Tasks/HelmDeployV1/src/helmcommands/helmcreate.ts @@ -0,0 +1,11 @@ +"use strict"; + +import tl = require('azure-pipelines-task-lib/task'); +import helmcli from "./../helmcli"; + +export async function addArguments(helmCli: helmcli) : Promise { + + var chartName = tl.getInput("chartName", true); + + helmCli.addArgument(chartName); +} diff --git a/Tasks/HelmDeployV1/src/helmcommands/helmpush.ts b/Tasks/HelmDeployV1/src/helmcommands/helmpush.ts index 8e377d89c4a3..1977fd957355 100644 --- a/Tasks/HelmDeployV1/src/helmcommands/helmpush.ts +++ b/Tasks/HelmDeployV1/src/helmcommands/helmpush.ts @@ -8,7 +8,10 @@ Pushes a helm chart to ACR */ export async function addArguments(helmCli: helmcli): Promise { - helmCli.addArgument("push"); + helmCli.setCommand("push"); helmCli.addArgument(tl.getVariable("helmChartRef")); + helmCli.addArgument(tl.getInput("chartPath" , true)); + helmCli.addArgument(tl.getInput("remoteRepo" , true)); + } \ No newline at end of file diff --git a/Tasks/HelmDeployV1/src/helmcommands/helmrollback.ts b/Tasks/HelmDeployV1/src/helmcommands/helmrollback.ts new file mode 100644 index 000000000000..96f629d6b129 --- /dev/null +++ b/Tasks/HelmDeployV1/src/helmcommands/helmrollback.ts @@ -0,0 +1,16 @@ +"use strict"; + +import tl = require('azure-pipelines-task-lib/task'); +import helmcli from "../helmcli"; + +export async function addArguments(helmCli: helmcli) : Promise { + + var releaseName = tl.getInput("releaseName", true); + var namespace = tl.getInput("namespace", true); + + helmCli.addArgument(releaseName); + + if (namespace) { + helmCli.addArgument("--namespace ".concat(namespace)); + } +} diff --git a/Tasks/HelmDeployV1/src/helmcommands/helmuninstall.ts b/Tasks/HelmDeployV1/src/helmcommands/helmuninstall.ts new file mode 100644 index 000000000000..12b40e446ed1 --- /dev/null +++ b/Tasks/HelmDeployV1/src/helmcommands/helmuninstall.ts @@ -0,0 +1,16 @@ +"use strict"; + +import tl = require('azure-pipelines-task-lib/task'); +import helmcli from "../helmcli"; + +export async function addArguments(helmCli: helmcli): Promise { + var releaseName = tl.getInput("releaseName", true); + var namespace = tl.getInput("namespace" , false); + + helmCli.addArgument(releaseName); + + if (namespace) { + helmCli.addArgument("--namespace ".concat(namespace)); + } + +} diff --git a/Tasks/HelmDeployV1/task.json b/Tasks/HelmDeployV1/task.json index 5579ba4a922e..aa6cf8b4aea2 100644 --- a/Tasks/HelmDeployV1/task.json +++ b/Tasks/HelmDeployV1/task.json @@ -14,7 +14,7 @@ "version": { "Major": 1, "Minor": 252, - "Patch": 0 + "Patch": 2 }, "demands": [], "groups": [ @@ -180,6 +180,7 @@ "login": "login", "logout": "logout", "ls": "ls", + "push": "push", "package": "package", "rollback": "rollback", "upgrade": "upgrade", @@ -214,7 +215,7 @@ "type": "string", "helpMarkDown": "Chart reference to install, this can be a url or a chart name. For example, if chart name is 'stable/mysql', the task will run 'helm install stable/mysql'.", "defaultValue": "", - "visibleRule": "chartType == Name", + "visibleRule": "chartType == Name || command == create ", "required": "true", "groupName": "commands" }, @@ -224,7 +225,17 @@ "type": "filePath", "helpMarkDown": "Path to the chart to install. This can be a path to a packaged chart or a path to an unpacked chart directory. For example, if './redis' is specified the task will run 'helm install ./redis'.", "defaultValue": "", - "visibleRule": "chartType == FilePath || command == package", + "visibleRule": "chartType == FilePath || command == package || command == push", + "required": "true", + "groupName": "commands" + }, + { + "name": "remoteRepo", + "label": "Remote Repo", + "type": "string", + "helpMarkDown": "The remote repository where the chart will be pushed.", + "defaultValue": "", + "visibleRule": "command == push", "required": "true", "groupName": "commands" }, @@ -246,7 +257,7 @@ "type": "string", "helpMarkDown": "Release name. If unspecified, it will autogenerate one for you.", "defaultValue": "", - "visibleRule": "command == install || command == upgrade", + "visibleRule": "command == install || command == upgrade || command == rollback || command == uninstall || command == delete", "groupName": "commands" }, { diff --git a/Tasks/HelmDeployV1/task.loc.json b/Tasks/HelmDeployV1/task.loc.json index a73542603400..889e7b3f5b7c 100644 --- a/Tasks/HelmDeployV1/task.loc.json +++ b/Tasks/HelmDeployV1/task.loc.json @@ -14,7 +14,7 @@ "version": { "Major": 1, "Minor": 252, - "Patch": 0 + "Patch": 2 }, "demands": [], "groups": [ diff --git a/_generated/HelmDeployV1.versionmap.txt b/_generated/HelmDeployV1.versionmap.txt index 235c29d7f284..f184b6b34104 100644 --- a/_generated/HelmDeployV1.versionmap.txt +++ b/_generated/HelmDeployV1.versionmap.txt @@ -1,2 +1,2 @@ -Default|1.252.0 -Node20_229_3|1.252.1 +Default|1.252.2 +Node20_229_3|1.252.3 diff --git a/_generated/HelmDeployV1/Strings/resources.resjson/en-US/resources.resjson b/_generated/HelmDeployV1/Strings/resources.resjson/en-US/resources.resjson index c4f997f7275d..419545e0304f 100644 --- a/_generated/HelmDeployV1/Strings/resources.resjson/en-US/resources.resjson +++ b/_generated/HelmDeployV1/Strings/resources.resjson/en-US/resources.resjson @@ -36,6 +36,8 @@ "loc.input.help.chartName": "Chart reference to install, this can be a url or a chart name. For example, if chart name is 'stable/mysql', the task will run 'helm install stable/mysql'.", "loc.input.label.chartPath": "Chart Path", "loc.input.help.chartPath": "Path to the chart to install. This can be a path to a packaged chart or a path to an unpacked chart directory. For example, if './redis' is specified the task will run 'helm install ./redis'.", + "loc.input.label.remoteRepo": "Remote Repo", + "loc.input.help.remoteRepo": "The remote repository where the chart will be pushed.", "loc.input.label.version": "Version", "loc.input.help.version": "Specify the exact chart version to install. If this is not specified, the latest version is installed. Set the version on the chart to this semver version​", "loc.input.label.releaseName": "Release Name", diff --git a/_generated/HelmDeployV1/package-lock.json b/_generated/HelmDeployV1/package-lock.json index de2c7cd03a61..596b989080b5 100644 --- a/_generated/HelmDeployV1/package-lock.json +++ b/_generated/HelmDeployV1/package-lock.json @@ -195,6 +195,33 @@ "typed-rest-client": "2.1.0" } }, + "msalv1": { + "version": "npm:@azure/msal-node@1.18.4", + "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/@azure/msal-node/-/msal-node-1.18.4.tgz", + "integrity": "sha1-ySGwRHyS+zsMsev1qadvytLsfCE=", + "requires": { + "@azure/msal-common": "13.3.1", + "jsonwebtoken": "^9.0.0", + "uuid": "^8.3.0" + } + }, + "msalv2": { + "version": "npm:@azure/msal-node@2.16.2", + "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/@azure/msal-node/-/msal-node-2.16.2.tgz", + "integrity": "sha1-Prdo02iD6m+ak5wLW0Z7UY54//w=", + "requires": { + "@azure/msal-common": "14.16.0", + "jsonwebtoken": "^9.0.0", + "uuid": "^8.3.0" + }, + "dependencies": { + "@azure/msal-common": { + "version": "14.16.0", + "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/@azure/msal-common/-/msal-common-14.16.0.tgz", + "integrity": "sha1-80cPyux4jb5QhZlSzUmTQL2iPXo=" + } + } + }, "typed-rest-client": { "version": "2.1.0", "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/typed-rest-client/-/typed-rest-client-2.1.0.tgz", @@ -206,6 +233,11 @@ "tunnel": "0.0.6", "underscore": "^1.12.1" } + }, + "uuid": { + "version": "8.3.2", + "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha1-gNW1ztJxu5r2xEXyGhoExgbO++I=" } } }, @@ -868,45 +900,6 @@ "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, - "msalv1": { - "version": "npm:@azure/msal-node@1.18.4", - "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/@azure/msal-node/-/msal-node-1.18.4.tgz", - "integrity": "sha1-ySGwRHyS+zsMsev1qadvytLsfCE=", - "requires": { - "@azure/msal-common": "13.3.1", - "jsonwebtoken": "^9.0.0", - "uuid": "^8.3.0" - }, - "dependencies": { - "uuid": { - "version": "8.3.2", - "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha1-gNW1ztJxu5r2xEXyGhoExgbO++I=" - } - } - }, - "msalv2": { - "version": "npm:@azure/msal-node@2.16.2", - "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/@azure/msal-node/-/msal-node-2.16.2.tgz", - "integrity": "sha1-Prdo02iD6m+ak5wLW0Z7UY54//w=", - "requires": { - "@azure/msal-common": "14.16.0", - "jsonwebtoken": "^9.0.0", - "uuid": "^8.3.0" - }, - "dependencies": { - "@azure/msal-common": { - "version": "14.16.0", - "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/@azure/msal-common/-/msal-common-14.16.0.tgz", - "integrity": "sha1-80cPyux4jb5QhZlSzUmTQL2iPXo=" - }, - "uuid": { - "version": "8.3.2", - "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha1-gNW1ztJxu5r2xEXyGhoExgbO++I=" - } - } - }, "node-fetch": { "version": "2.7.0", "resolved": "https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/node-fetch/-/node-fetch-2.7.0.tgz", diff --git a/_generated/HelmDeployV1/src/helm.ts b/_generated/HelmDeployV1/src/helm.ts index 92d6a8858ce3..e5aff773d9e3 100644 --- a/_generated/HelmDeployV1/src/helm.ts +++ b/_generated/HelmDeployV1/src/helm.ts @@ -145,7 +145,11 @@ async function runHelm(helmCli: helmcli, command: string, kubectlCli: kubernetes "package": "./helmcommands/helmpackage", "push": "./helmcommands/helmpush", "registry": "./helmcommands/helmregistrylogin", - "upgrade": "./helmcommands/helmupgrade" + "upgrade": "./helmcommands/helmupgrade", + "rollback": "./helmcommands/helmrollback", + "uninstall": "./helmcommands/helmuninstall", + "delete": "./helmcommands/helmuninstall", + "create": "./helmcommands/helmcreate" } var commandImplementation = require("./helmcommands/uinotimplementedcommands"); diff --git a/_generated/HelmDeployV1/src/helmcommands/helmcreate.ts b/_generated/HelmDeployV1/src/helmcommands/helmcreate.ts new file mode 100644 index 000000000000..c9a659327bb1 --- /dev/null +++ b/_generated/HelmDeployV1/src/helmcommands/helmcreate.ts @@ -0,0 +1,11 @@ +"use strict"; + +import tl = require('azure-pipelines-task-lib/task'); +import helmcli from "./../helmcli"; + +export async function addArguments(helmCli: helmcli) : Promise { + + var chartName = tl.getInput("chartName", true); + + helmCli.addArgument(chartName); +} diff --git a/_generated/HelmDeployV1/src/helmcommands/helmpush.ts b/_generated/HelmDeployV1/src/helmcommands/helmpush.ts index 8e377d89c4a3..1977fd957355 100644 --- a/_generated/HelmDeployV1/src/helmcommands/helmpush.ts +++ b/_generated/HelmDeployV1/src/helmcommands/helmpush.ts @@ -8,7 +8,10 @@ Pushes a helm chart to ACR */ export async function addArguments(helmCli: helmcli): Promise { - helmCli.addArgument("push"); + helmCli.setCommand("push"); helmCli.addArgument(tl.getVariable("helmChartRef")); + helmCli.addArgument(tl.getInput("chartPath" , true)); + helmCli.addArgument(tl.getInput("remoteRepo" , true)); + } \ No newline at end of file diff --git a/_generated/HelmDeployV1/src/helmcommands/helmrollback.ts b/_generated/HelmDeployV1/src/helmcommands/helmrollback.ts new file mode 100644 index 000000000000..96f629d6b129 --- /dev/null +++ b/_generated/HelmDeployV1/src/helmcommands/helmrollback.ts @@ -0,0 +1,16 @@ +"use strict"; + +import tl = require('azure-pipelines-task-lib/task'); +import helmcli from "../helmcli"; + +export async function addArguments(helmCli: helmcli) : Promise { + + var releaseName = tl.getInput("releaseName", true); + var namespace = tl.getInput("namespace", true); + + helmCli.addArgument(releaseName); + + if (namespace) { + helmCli.addArgument("--namespace ".concat(namespace)); + } +} diff --git a/_generated/HelmDeployV1/src/helmcommands/helmuninstall.ts b/_generated/HelmDeployV1/src/helmcommands/helmuninstall.ts new file mode 100644 index 000000000000..12b40e446ed1 --- /dev/null +++ b/_generated/HelmDeployV1/src/helmcommands/helmuninstall.ts @@ -0,0 +1,16 @@ +"use strict"; + +import tl = require('azure-pipelines-task-lib/task'); +import helmcli from "../helmcli"; + +export async function addArguments(helmCli: helmcli): Promise { + var releaseName = tl.getInput("releaseName", true); + var namespace = tl.getInput("namespace" , false); + + helmCli.addArgument(releaseName); + + if (namespace) { + helmCli.addArgument("--namespace ".concat(namespace)); + } + +} diff --git a/_generated/HelmDeployV1/task.json b/_generated/HelmDeployV1/task.json index aa51f03100fe..b7f7a37b486c 100644 --- a/_generated/HelmDeployV1/task.json +++ b/_generated/HelmDeployV1/task.json @@ -14,7 +14,7 @@ "version": { "Major": 1, "Minor": 252, - "Patch": 0 + "Patch": 2 }, "demands": [], "groups": [ @@ -180,6 +180,7 @@ "login": "login", "logout": "logout", "ls": "ls", + "push": "push", "package": "package", "rollback": "rollback", "upgrade": "upgrade", @@ -214,7 +215,7 @@ "type": "string", "helpMarkDown": "Chart reference to install, this can be a url or a chart name. For example, if chart name is 'stable/mysql', the task will run 'helm install stable/mysql'.", "defaultValue": "", - "visibleRule": "chartType == Name", + "visibleRule": "chartType == Name || command == create ", "required": "true", "groupName": "commands" }, @@ -224,7 +225,17 @@ "type": "filePath", "helpMarkDown": "Path to the chart to install. This can be a path to a packaged chart or a path to an unpacked chart directory. For example, if './redis' is specified the task will run 'helm install ./redis'.", "defaultValue": "", - "visibleRule": "chartType == FilePath || command == package", + "visibleRule": "chartType == FilePath || command == package || command == push", + "required": "true", + "groupName": "commands" + }, + { + "name": "remoteRepo", + "label": "Remote Repo", + "type": "string", + "helpMarkDown": "The remote repository where the chart will be pushed.", + "defaultValue": "", + "visibleRule": "command == push", "required": "true", "groupName": "commands" }, @@ -246,7 +257,7 @@ "type": "string", "helpMarkDown": "Release name. If unspecified, it will autogenerate one for you.", "defaultValue": "", - "visibleRule": "command == install || command == upgrade", + "visibleRule": "command == install || command == upgrade || command == rollback || command == uninstall || command == delete", "groupName": "commands" }, { @@ -561,8 +572,8 @@ "KubeloginFailed": "Kubelogin authentication failed. Exception: %s" }, "_buildConfigMapping": { - "Default": "1.252.0", + "Default": "1.252.2", "LocalPackages": "1.249.4", - "Node20_229_3": "1.252.1" + "Node20_229_3": "1.252.3" } } \ No newline at end of file diff --git a/_generated/HelmDeployV1/task.loc.json b/_generated/HelmDeployV1/task.loc.json index ed0c233dc4e3..ad0ed94cc59e 100644 --- a/_generated/HelmDeployV1/task.loc.json +++ b/_generated/HelmDeployV1/task.loc.json @@ -14,7 +14,7 @@ "version": { "Major": 1, "Minor": 252, - "Patch": 0 + "Patch": 2 }, "demands": [], "groups": [ @@ -180,6 +180,7 @@ "login": "login", "logout": "logout", "ls": "ls", + "push": "push", "package": "package", "rollback": "rollback", "upgrade": "upgrade", @@ -214,7 +215,7 @@ "type": "string", "helpMarkDown": "ms-resource:loc.input.help.chartName", "defaultValue": "", - "visibleRule": "chartType == Name", + "visibleRule": "chartType == Name || command == create ", "required": "true", "groupName": "commands" }, @@ -224,7 +225,17 @@ "type": "filePath", "helpMarkDown": "ms-resource:loc.input.help.chartPath", "defaultValue": "", - "visibleRule": "chartType == FilePath || command == package", + "visibleRule": "chartType == FilePath || command == package || command == push", + "required": "true", + "groupName": "commands" + }, + { + "name": "remoteRepo", + "label": "ms-resource:loc.input.label.remoteRepo", + "type": "string", + "helpMarkDown": "ms-resource:loc.input.help.remoteRepo", + "defaultValue": "", + "visibleRule": "command == push", "required": "true", "groupName": "commands" }, @@ -246,7 +257,7 @@ "type": "string", "helpMarkDown": "ms-resource:loc.input.help.releaseName", "defaultValue": "", - "visibleRule": "command == install || command == upgrade", + "visibleRule": "command == install || command == upgrade || command == rollback || command == uninstall || command == delete", "groupName": "commands" }, { @@ -561,8 +572,8 @@ "KubeloginFailed": "ms-resource:loc.messages.KubeloginFailed" }, "_buildConfigMapping": { - "Default": "1.252.0", + "Default": "1.252.2", "LocalPackages": "1.249.4", - "Node20_229_3": "1.252.1" + "Node20_229_3": "1.252.3" } } \ No newline at end of file diff --git a/_generated/HelmDeployV1_Node20/Strings/resources.resjson/en-US/resources.resjson b/_generated/HelmDeployV1_Node20/Strings/resources.resjson/en-US/resources.resjson index c4f997f7275d..419545e0304f 100644 --- a/_generated/HelmDeployV1_Node20/Strings/resources.resjson/en-US/resources.resjson +++ b/_generated/HelmDeployV1_Node20/Strings/resources.resjson/en-US/resources.resjson @@ -36,6 +36,8 @@ "loc.input.help.chartName": "Chart reference to install, this can be a url or a chart name. For example, if chart name is 'stable/mysql', the task will run 'helm install stable/mysql'.", "loc.input.label.chartPath": "Chart Path", "loc.input.help.chartPath": "Path to the chart to install. This can be a path to a packaged chart or a path to an unpacked chart directory. For example, if './redis' is specified the task will run 'helm install ./redis'.", + "loc.input.label.remoteRepo": "Remote Repo", + "loc.input.help.remoteRepo": "The remote repository where the chart will be pushed.", "loc.input.label.version": "Version", "loc.input.help.version": "Specify the exact chart version to install. If this is not specified, the latest version is installed. Set the version on the chart to this semver version​", "loc.input.label.releaseName": "Release Name", diff --git a/_generated/HelmDeployV1_Node20/src/helm.ts b/_generated/HelmDeployV1_Node20/src/helm.ts index 92d6a8858ce3..e5aff773d9e3 100644 --- a/_generated/HelmDeployV1_Node20/src/helm.ts +++ b/_generated/HelmDeployV1_Node20/src/helm.ts @@ -145,7 +145,11 @@ async function runHelm(helmCli: helmcli, command: string, kubectlCli: kubernetes "package": "./helmcommands/helmpackage", "push": "./helmcommands/helmpush", "registry": "./helmcommands/helmregistrylogin", - "upgrade": "./helmcommands/helmupgrade" + "upgrade": "./helmcommands/helmupgrade", + "rollback": "./helmcommands/helmrollback", + "uninstall": "./helmcommands/helmuninstall", + "delete": "./helmcommands/helmuninstall", + "create": "./helmcommands/helmcreate" } var commandImplementation = require("./helmcommands/uinotimplementedcommands"); diff --git a/_generated/HelmDeployV1_Node20/src/helmcommands/helmcreate.ts b/_generated/HelmDeployV1_Node20/src/helmcommands/helmcreate.ts new file mode 100644 index 000000000000..c9a659327bb1 --- /dev/null +++ b/_generated/HelmDeployV1_Node20/src/helmcommands/helmcreate.ts @@ -0,0 +1,11 @@ +"use strict"; + +import tl = require('azure-pipelines-task-lib/task'); +import helmcli from "./../helmcli"; + +export async function addArguments(helmCli: helmcli) : Promise { + + var chartName = tl.getInput("chartName", true); + + helmCli.addArgument(chartName); +} diff --git a/_generated/HelmDeployV1_Node20/src/helmcommands/helmpush.ts b/_generated/HelmDeployV1_Node20/src/helmcommands/helmpush.ts index 8e377d89c4a3..1977fd957355 100644 --- a/_generated/HelmDeployV1_Node20/src/helmcommands/helmpush.ts +++ b/_generated/HelmDeployV1_Node20/src/helmcommands/helmpush.ts @@ -8,7 +8,10 @@ Pushes a helm chart to ACR */ export async function addArguments(helmCli: helmcli): Promise { - helmCli.addArgument("push"); + helmCli.setCommand("push"); helmCli.addArgument(tl.getVariable("helmChartRef")); + helmCli.addArgument(tl.getInput("chartPath" , true)); + helmCli.addArgument(tl.getInput("remoteRepo" , true)); + } \ No newline at end of file diff --git a/_generated/HelmDeployV1_Node20/src/helmcommands/helmrollback.ts b/_generated/HelmDeployV1_Node20/src/helmcommands/helmrollback.ts new file mode 100644 index 000000000000..96f629d6b129 --- /dev/null +++ b/_generated/HelmDeployV1_Node20/src/helmcommands/helmrollback.ts @@ -0,0 +1,16 @@ +"use strict"; + +import tl = require('azure-pipelines-task-lib/task'); +import helmcli from "../helmcli"; + +export async function addArguments(helmCli: helmcli) : Promise { + + var releaseName = tl.getInput("releaseName", true); + var namespace = tl.getInput("namespace", true); + + helmCli.addArgument(releaseName); + + if (namespace) { + helmCli.addArgument("--namespace ".concat(namespace)); + } +} diff --git a/_generated/HelmDeployV1_Node20/src/helmcommands/helmuninstall.ts b/_generated/HelmDeployV1_Node20/src/helmcommands/helmuninstall.ts new file mode 100644 index 000000000000..12b40e446ed1 --- /dev/null +++ b/_generated/HelmDeployV1_Node20/src/helmcommands/helmuninstall.ts @@ -0,0 +1,16 @@ +"use strict"; + +import tl = require('azure-pipelines-task-lib/task'); +import helmcli from "../helmcli"; + +export async function addArguments(helmCli: helmcli): Promise { + var releaseName = tl.getInput("releaseName", true); + var namespace = tl.getInput("namespace" , false); + + helmCli.addArgument(releaseName); + + if (namespace) { + helmCli.addArgument("--namespace ".concat(namespace)); + } + +} diff --git a/_generated/HelmDeployV1_Node20/task.json b/_generated/HelmDeployV1_Node20/task.json index d7ad752e33b4..49fed2f27705 100644 --- a/_generated/HelmDeployV1_Node20/task.json +++ b/_generated/HelmDeployV1_Node20/task.json @@ -14,7 +14,7 @@ "version": { "Major": 1, "Minor": 252, - "Patch": 1 + "Patch": 3 }, "demands": [], "groups": [ @@ -180,6 +180,7 @@ "login": "login", "logout": "logout", "ls": "ls", + "push": "push", "package": "package", "rollback": "rollback", "upgrade": "upgrade", @@ -214,7 +215,7 @@ "type": "string", "helpMarkDown": "Chart reference to install, this can be a url or a chart name. For example, if chart name is 'stable/mysql', the task will run 'helm install stable/mysql'.", "defaultValue": "", - "visibleRule": "chartType == Name", + "visibleRule": "chartType == Name || command == create ", "required": "true", "groupName": "commands" }, @@ -224,7 +225,17 @@ "type": "filePath", "helpMarkDown": "Path to the chart to install. This can be a path to a packaged chart or a path to an unpacked chart directory. For example, if './redis' is specified the task will run 'helm install ./redis'.", "defaultValue": "", - "visibleRule": "chartType == FilePath || command == package", + "visibleRule": "chartType == FilePath || command == package || command == push", + "required": "true", + "groupName": "commands" + }, + { + "name": "remoteRepo", + "label": "Remote Repo", + "type": "string", + "helpMarkDown": "The remote repository where the chart will be pushed.", + "defaultValue": "", + "visibleRule": "command == push", "required": "true", "groupName": "commands" }, @@ -246,7 +257,7 @@ "type": "string", "helpMarkDown": "Release name. If unspecified, it will autogenerate one for you.", "defaultValue": "", - "visibleRule": "command == install || command == upgrade", + "visibleRule": "command == install || command == upgrade || command == rollback || command == uninstall || command == delete", "groupName": "commands" }, { @@ -573,8 +584,8 @@ "KubeloginFailed": "Kubelogin authentication failed. Exception: %s" }, "_buildConfigMapping": { - "Default": "1.252.0", + "Default": "1.252.2", "LocalPackages": "1.249.4", - "Node20_229_3": "1.252.1" + "Node20_229_3": "1.252.3" } } \ No newline at end of file diff --git a/_generated/HelmDeployV1_Node20/task.loc.json b/_generated/HelmDeployV1_Node20/task.loc.json index 33ede9a50a3f..f8cc9eaad810 100644 --- a/_generated/HelmDeployV1_Node20/task.loc.json +++ b/_generated/HelmDeployV1_Node20/task.loc.json @@ -14,7 +14,7 @@ "version": { "Major": 1, "Minor": 252, - "Patch": 1 + "Patch": 3 }, "demands": [], "groups": [ @@ -180,6 +180,7 @@ "login": "login", "logout": "logout", "ls": "ls", + "push": "push", "package": "package", "rollback": "rollback", "upgrade": "upgrade", @@ -214,7 +215,7 @@ "type": "string", "helpMarkDown": "ms-resource:loc.input.help.chartName", "defaultValue": "", - "visibleRule": "chartType == Name", + "visibleRule": "chartType == Name || command == create ", "required": "true", "groupName": "commands" }, @@ -224,7 +225,17 @@ "type": "filePath", "helpMarkDown": "ms-resource:loc.input.help.chartPath", "defaultValue": "", - "visibleRule": "chartType == FilePath || command == package", + "visibleRule": "chartType == FilePath || command == package || command == push", + "required": "true", + "groupName": "commands" + }, + { + "name": "remoteRepo", + "label": "ms-resource:loc.input.label.remoteRepo", + "type": "string", + "helpMarkDown": "ms-resource:loc.input.help.remoteRepo", + "defaultValue": "", + "visibleRule": "command == push", "required": "true", "groupName": "commands" }, @@ -246,7 +257,7 @@ "type": "string", "helpMarkDown": "ms-resource:loc.input.help.releaseName", "defaultValue": "", - "visibleRule": "command == install || command == upgrade", + "visibleRule": "command == install || command == upgrade || command == rollback || command == uninstall || command == delete", "groupName": "commands" }, { @@ -573,8 +584,8 @@ "KubeloginFailed": "ms-resource:loc.messages.KubeloginFailed" }, "_buildConfigMapping": { - "Default": "1.252.0", + "Default": "1.252.2", "LocalPackages": "1.249.4", - "Node20_229_3": "1.252.1" + "Node20_229_3": "1.252.3" } } \ No newline at end of file From cc36373196e793f84ef4ea24824d20320df31df8 Mon Sep 17 00:00:00 2001 From: "Deeksitha Merugu (LTIMINDTREE LIMITED)" Date: Thu, 30 Jan 2025 18:46:29 +0530 Subject: [PATCH 2/6] changing task loc file --- Tasks/HelmDeployV1/task.loc.json | 14 ++++++++++++-- _generated/HelmDeployV1/src/helm.ts | 2 +- _generated/HelmDeployV1_Node20/src/helm.ts | 2 +- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Tasks/HelmDeployV1/task.loc.json b/Tasks/HelmDeployV1/task.loc.json index 889e7b3f5b7c..3fbe330874b6 100644 --- a/Tasks/HelmDeployV1/task.loc.json +++ b/Tasks/HelmDeployV1/task.loc.json @@ -214,7 +214,7 @@ "type": "string", "helpMarkDown": "ms-resource:loc.input.help.chartName", "defaultValue": "", - "visibleRule": "chartType == Name", + "visibleRule": "chartType == Name || command == create", "required": "true", "groupName": "commands" }, @@ -228,6 +228,16 @@ "required": "true", "groupName": "commands" }, + { + "name": "remoteRepo", + "label": "ms-resource:loc.input.label.remoteRepo", + "type": "string", + "helpMarkDown": "ms-resource:loc.input.help.remoteRepo", + "defaultValue": "", + "visibleRule": "command == push", + "required": "true", + "groupName": "commands" + }, { "name": "version", "label": "ms-resource:loc.input.label.version", @@ -255,7 +265,7 @@ "type": "string", "helpMarkDown": "ms-resource:loc.input.help.overrideValues", "defaultValue": "", - "visibleRule": "command == install || command == upgrade", + "visibleRule": "command == install || command == upgrade || command == rollback || command == uninstall || command == delete", "groupName": "commands" }, { diff --git a/_generated/HelmDeployV1/src/helm.ts b/_generated/HelmDeployV1/src/helm.ts index e5aff773d9e3..2db5469c158b 100644 --- a/_generated/HelmDeployV1/src/helm.ts +++ b/_generated/HelmDeployV1/src/helm.ts @@ -149,7 +149,7 @@ async function runHelm(helmCli: helmcli, command: string, kubectlCli: kubernetes "rollback": "./helmcommands/helmrollback", "uninstall": "./helmcommands/helmuninstall", "delete": "./helmcommands/helmuninstall", - "create": "./helmcommands/helmcreate" + "create": "./helmcommands/helmcreate", } var commandImplementation = require("./helmcommands/uinotimplementedcommands"); diff --git a/_generated/HelmDeployV1_Node20/src/helm.ts b/_generated/HelmDeployV1_Node20/src/helm.ts index e5aff773d9e3..2db5469c158b 100644 --- a/_generated/HelmDeployV1_Node20/src/helm.ts +++ b/_generated/HelmDeployV1_Node20/src/helm.ts @@ -149,7 +149,7 @@ async function runHelm(helmCli: helmcli, command: string, kubectlCli: kubernetes "rollback": "./helmcommands/helmrollback", "uninstall": "./helmcommands/helmuninstall", "delete": "./helmcommands/helmuninstall", - "create": "./helmcommands/helmcreate" + "create": "./helmcommands/helmcreate", } var commandImplementation = require("./helmcommands/uinotimplementedcommands"); From 9449dbddd2a3e726722736ee36e3b724806132e2 Mon Sep 17 00:00:00 2001 From: "Deeksitha Merugu (LTIMINDTREE LIMITED)" Date: Thu, 30 Jan 2025 19:44:17 +0530 Subject: [PATCH 3/6] task loc file update --- Tasks/HelmDeployV1/task.loc.json | 1 + 1 file changed, 1 insertion(+) diff --git a/Tasks/HelmDeployV1/task.loc.json b/Tasks/HelmDeployV1/task.loc.json index 3fbe330874b6..922867727d95 100644 --- a/Tasks/HelmDeployV1/task.loc.json +++ b/Tasks/HelmDeployV1/task.loc.json @@ -180,6 +180,7 @@ "login": "login", "logout": "logout", "ls": "ls", + "push": "push", "package": "package", "rollback": "rollback", "upgrade": "upgrade", From 8896ab9a54433b0d0fcac100d6f6a9731ba93613 Mon Sep 17 00:00:00 2001 From: "Deeksitha Merugu (LTIMINDTREE LIMITED)" Date: Thu, 30 Jan 2025 20:20:04 +0530 Subject: [PATCH 4/6] removing parameter --- Tasks/HelmDeployV1/task.json | 10 ---------- Tasks/HelmDeployV1/task.loc.json | 10 ---------- .../Strings/resources.resjson/en-US/resources.resjson | 2 -- _generated/HelmDeployV1/task.json | 10 ---------- _generated/HelmDeployV1/task.loc.json | 10 ---------- .../Strings/resources.resjson/en-US/resources.resjson | 2 -- _generated/HelmDeployV1_Node20/task.json | 10 ---------- _generated/HelmDeployV1_Node20/task.loc.json | 10 ---------- 8 files changed, 64 deletions(-) diff --git a/Tasks/HelmDeployV1/task.json b/Tasks/HelmDeployV1/task.json index aa6cf8b4aea2..a43c80417890 100644 --- a/Tasks/HelmDeployV1/task.json +++ b/Tasks/HelmDeployV1/task.json @@ -229,16 +229,6 @@ "required": "true", "groupName": "commands" }, - { - "name": "remoteRepo", - "label": "Remote Repo", - "type": "string", - "helpMarkDown": "The remote repository where the chart will be pushed.", - "defaultValue": "", - "visibleRule": "command == push", - "required": "true", - "groupName": "commands" - }, { "name": "version", "label": "Version", diff --git a/Tasks/HelmDeployV1/task.loc.json b/Tasks/HelmDeployV1/task.loc.json index 922867727d95..51060a454394 100644 --- a/Tasks/HelmDeployV1/task.loc.json +++ b/Tasks/HelmDeployV1/task.loc.json @@ -229,16 +229,6 @@ "required": "true", "groupName": "commands" }, - { - "name": "remoteRepo", - "label": "ms-resource:loc.input.label.remoteRepo", - "type": "string", - "helpMarkDown": "ms-resource:loc.input.help.remoteRepo", - "defaultValue": "", - "visibleRule": "command == push", - "required": "true", - "groupName": "commands" - }, { "name": "version", "label": "ms-resource:loc.input.label.version", diff --git a/_generated/HelmDeployV1/Strings/resources.resjson/en-US/resources.resjson b/_generated/HelmDeployV1/Strings/resources.resjson/en-US/resources.resjson index 419545e0304f..c4f997f7275d 100644 --- a/_generated/HelmDeployV1/Strings/resources.resjson/en-US/resources.resjson +++ b/_generated/HelmDeployV1/Strings/resources.resjson/en-US/resources.resjson @@ -36,8 +36,6 @@ "loc.input.help.chartName": "Chart reference to install, this can be a url or a chart name. For example, if chart name is 'stable/mysql', the task will run 'helm install stable/mysql'.", "loc.input.label.chartPath": "Chart Path", "loc.input.help.chartPath": "Path to the chart to install. This can be a path to a packaged chart or a path to an unpacked chart directory. For example, if './redis' is specified the task will run 'helm install ./redis'.", - "loc.input.label.remoteRepo": "Remote Repo", - "loc.input.help.remoteRepo": "The remote repository where the chart will be pushed.", "loc.input.label.version": "Version", "loc.input.help.version": "Specify the exact chart version to install. If this is not specified, the latest version is installed. Set the version on the chart to this semver version​", "loc.input.label.releaseName": "Release Name", diff --git a/_generated/HelmDeployV1/task.json b/_generated/HelmDeployV1/task.json index b7f7a37b486c..999e6bd0c4c5 100644 --- a/_generated/HelmDeployV1/task.json +++ b/_generated/HelmDeployV1/task.json @@ -229,16 +229,6 @@ "required": "true", "groupName": "commands" }, - { - "name": "remoteRepo", - "label": "Remote Repo", - "type": "string", - "helpMarkDown": "The remote repository where the chart will be pushed.", - "defaultValue": "", - "visibleRule": "command == push", - "required": "true", - "groupName": "commands" - }, { "name": "version", "label": "Version", diff --git a/_generated/HelmDeployV1/task.loc.json b/_generated/HelmDeployV1/task.loc.json index ad0ed94cc59e..1117439c11e4 100644 --- a/_generated/HelmDeployV1/task.loc.json +++ b/_generated/HelmDeployV1/task.loc.json @@ -229,16 +229,6 @@ "required": "true", "groupName": "commands" }, - { - "name": "remoteRepo", - "label": "ms-resource:loc.input.label.remoteRepo", - "type": "string", - "helpMarkDown": "ms-resource:loc.input.help.remoteRepo", - "defaultValue": "", - "visibleRule": "command == push", - "required": "true", - "groupName": "commands" - }, { "name": "version", "label": "ms-resource:loc.input.label.version", diff --git a/_generated/HelmDeployV1_Node20/Strings/resources.resjson/en-US/resources.resjson b/_generated/HelmDeployV1_Node20/Strings/resources.resjson/en-US/resources.resjson index 419545e0304f..c4f997f7275d 100644 --- a/_generated/HelmDeployV1_Node20/Strings/resources.resjson/en-US/resources.resjson +++ b/_generated/HelmDeployV1_Node20/Strings/resources.resjson/en-US/resources.resjson @@ -36,8 +36,6 @@ "loc.input.help.chartName": "Chart reference to install, this can be a url or a chart name. For example, if chart name is 'stable/mysql', the task will run 'helm install stable/mysql'.", "loc.input.label.chartPath": "Chart Path", "loc.input.help.chartPath": "Path to the chart to install. This can be a path to a packaged chart or a path to an unpacked chart directory. For example, if './redis' is specified the task will run 'helm install ./redis'.", - "loc.input.label.remoteRepo": "Remote Repo", - "loc.input.help.remoteRepo": "The remote repository where the chart will be pushed.", "loc.input.label.version": "Version", "loc.input.help.version": "Specify the exact chart version to install. If this is not specified, the latest version is installed. Set the version on the chart to this semver version​", "loc.input.label.releaseName": "Release Name", diff --git a/_generated/HelmDeployV1_Node20/task.json b/_generated/HelmDeployV1_Node20/task.json index 49fed2f27705..57c647a1691a 100644 --- a/_generated/HelmDeployV1_Node20/task.json +++ b/_generated/HelmDeployV1_Node20/task.json @@ -229,16 +229,6 @@ "required": "true", "groupName": "commands" }, - { - "name": "remoteRepo", - "label": "Remote Repo", - "type": "string", - "helpMarkDown": "The remote repository where the chart will be pushed.", - "defaultValue": "", - "visibleRule": "command == push", - "required": "true", - "groupName": "commands" - }, { "name": "version", "label": "Version", diff --git a/_generated/HelmDeployV1_Node20/task.loc.json b/_generated/HelmDeployV1_Node20/task.loc.json index f8cc9eaad810..1e453554e29a 100644 --- a/_generated/HelmDeployV1_Node20/task.loc.json +++ b/_generated/HelmDeployV1_Node20/task.loc.json @@ -229,16 +229,6 @@ "required": "true", "groupName": "commands" }, - { - "name": "remoteRepo", - "label": "ms-resource:loc.input.label.remoteRepo", - "type": "string", - "helpMarkDown": "ms-resource:loc.input.help.remoteRepo", - "defaultValue": "", - "visibleRule": "command == push", - "required": "true", - "groupName": "commands" - }, { "name": "version", "label": "ms-resource:loc.input.label.version", From 3d380d221c3f24280e53965e4dbe9093158cc055 Mon Sep 17 00:00:00 2001 From: "Deeksitha Merugu (LTIMINDTREE LIMITED)" Date: Thu, 30 Jan 2025 21:10:28 +0530 Subject: [PATCH 5/6] adding parameter --- Tasks/HelmDeployV1/task.json | 10 ++++++++++ Tasks/HelmDeployV1/task.loc.json | 12 +++++++++++- .../resources.resjson/en-US/resources.resjson | 2 ++ _generated/HelmDeployV1/task.json | 10 ++++++++++ _generated/HelmDeployV1/task.loc.json | 10 ++++++++++ .../resources.resjson/en-US/resources.resjson | 2 ++ _generated/HelmDeployV1_Node20/task.json | 10 ++++++++++ _generated/HelmDeployV1_Node20/task.loc.json | 10 ++++++++++ 8 files changed, 65 insertions(+), 1 deletion(-) diff --git a/Tasks/HelmDeployV1/task.json b/Tasks/HelmDeployV1/task.json index a43c80417890..aa6cf8b4aea2 100644 --- a/Tasks/HelmDeployV1/task.json +++ b/Tasks/HelmDeployV1/task.json @@ -229,6 +229,16 @@ "required": "true", "groupName": "commands" }, + { + "name": "remoteRepo", + "label": "Remote Repo", + "type": "string", + "helpMarkDown": "The remote repository where the chart will be pushed.", + "defaultValue": "", + "visibleRule": "command == push", + "required": "true", + "groupName": "commands" + }, { "name": "version", "label": "Version", diff --git a/Tasks/HelmDeployV1/task.loc.json b/Tasks/HelmDeployV1/task.loc.json index 51060a454394..06a61e04e1d0 100644 --- a/Tasks/HelmDeployV1/task.loc.json +++ b/Tasks/HelmDeployV1/task.loc.json @@ -225,7 +225,17 @@ "type": "filePath", "helpMarkDown": "ms-resource:loc.input.help.chartPath", "defaultValue": "", - "visibleRule": "chartType == FilePath || command == package", + "visibleRule": "chartType == FilePath || command == package || command == push", + "required": "true", + "groupName": "commands" + }, + { + "name": "remoteRepo", + "label": "ms-resource:loc.input.label.remoteRepo", + "type": "string", + "helpMarkDown": "ms-resource:loc.input.help.remoteRepo", + "defaultValue": "", + "visibleRule": "command == push", "required": "true", "groupName": "commands" }, diff --git a/_generated/HelmDeployV1/Strings/resources.resjson/en-US/resources.resjson b/_generated/HelmDeployV1/Strings/resources.resjson/en-US/resources.resjson index c4f997f7275d..419545e0304f 100644 --- a/_generated/HelmDeployV1/Strings/resources.resjson/en-US/resources.resjson +++ b/_generated/HelmDeployV1/Strings/resources.resjson/en-US/resources.resjson @@ -36,6 +36,8 @@ "loc.input.help.chartName": "Chart reference to install, this can be a url or a chart name. For example, if chart name is 'stable/mysql', the task will run 'helm install stable/mysql'.", "loc.input.label.chartPath": "Chart Path", "loc.input.help.chartPath": "Path to the chart to install. This can be a path to a packaged chart or a path to an unpacked chart directory. For example, if './redis' is specified the task will run 'helm install ./redis'.", + "loc.input.label.remoteRepo": "Remote Repo", + "loc.input.help.remoteRepo": "The remote repository where the chart will be pushed.", "loc.input.label.version": "Version", "loc.input.help.version": "Specify the exact chart version to install. If this is not specified, the latest version is installed. Set the version on the chart to this semver version​", "loc.input.label.releaseName": "Release Name", diff --git a/_generated/HelmDeployV1/task.json b/_generated/HelmDeployV1/task.json index 999e6bd0c4c5..b7f7a37b486c 100644 --- a/_generated/HelmDeployV1/task.json +++ b/_generated/HelmDeployV1/task.json @@ -229,6 +229,16 @@ "required": "true", "groupName": "commands" }, + { + "name": "remoteRepo", + "label": "Remote Repo", + "type": "string", + "helpMarkDown": "The remote repository where the chart will be pushed.", + "defaultValue": "", + "visibleRule": "command == push", + "required": "true", + "groupName": "commands" + }, { "name": "version", "label": "Version", diff --git a/_generated/HelmDeployV1/task.loc.json b/_generated/HelmDeployV1/task.loc.json index 1117439c11e4..ad0ed94cc59e 100644 --- a/_generated/HelmDeployV1/task.loc.json +++ b/_generated/HelmDeployV1/task.loc.json @@ -229,6 +229,16 @@ "required": "true", "groupName": "commands" }, + { + "name": "remoteRepo", + "label": "ms-resource:loc.input.label.remoteRepo", + "type": "string", + "helpMarkDown": "ms-resource:loc.input.help.remoteRepo", + "defaultValue": "", + "visibleRule": "command == push", + "required": "true", + "groupName": "commands" + }, { "name": "version", "label": "ms-resource:loc.input.label.version", diff --git a/_generated/HelmDeployV1_Node20/Strings/resources.resjson/en-US/resources.resjson b/_generated/HelmDeployV1_Node20/Strings/resources.resjson/en-US/resources.resjson index c4f997f7275d..419545e0304f 100644 --- a/_generated/HelmDeployV1_Node20/Strings/resources.resjson/en-US/resources.resjson +++ b/_generated/HelmDeployV1_Node20/Strings/resources.resjson/en-US/resources.resjson @@ -36,6 +36,8 @@ "loc.input.help.chartName": "Chart reference to install, this can be a url or a chart name. For example, if chart name is 'stable/mysql', the task will run 'helm install stable/mysql'.", "loc.input.label.chartPath": "Chart Path", "loc.input.help.chartPath": "Path to the chart to install. This can be a path to a packaged chart or a path to an unpacked chart directory. For example, if './redis' is specified the task will run 'helm install ./redis'.", + "loc.input.label.remoteRepo": "Remote Repo", + "loc.input.help.remoteRepo": "The remote repository where the chart will be pushed.", "loc.input.label.version": "Version", "loc.input.help.version": "Specify the exact chart version to install. If this is not specified, the latest version is installed. Set the version on the chart to this semver version​", "loc.input.label.releaseName": "Release Name", diff --git a/_generated/HelmDeployV1_Node20/task.json b/_generated/HelmDeployV1_Node20/task.json index 57c647a1691a..49fed2f27705 100644 --- a/_generated/HelmDeployV1_Node20/task.json +++ b/_generated/HelmDeployV1_Node20/task.json @@ -229,6 +229,16 @@ "required": "true", "groupName": "commands" }, + { + "name": "remoteRepo", + "label": "Remote Repo", + "type": "string", + "helpMarkDown": "The remote repository where the chart will be pushed.", + "defaultValue": "", + "visibleRule": "command == push", + "required": "true", + "groupName": "commands" + }, { "name": "version", "label": "Version", diff --git a/_generated/HelmDeployV1_Node20/task.loc.json b/_generated/HelmDeployV1_Node20/task.loc.json index 1e453554e29a..f8cc9eaad810 100644 --- a/_generated/HelmDeployV1_Node20/task.loc.json +++ b/_generated/HelmDeployV1_Node20/task.loc.json @@ -229,6 +229,16 @@ "required": "true", "groupName": "commands" }, + { + "name": "remoteRepo", + "label": "ms-resource:loc.input.label.remoteRepo", + "type": "string", + "helpMarkDown": "ms-resource:loc.input.help.remoteRepo", + "defaultValue": "", + "visibleRule": "command == push", + "required": "true", + "groupName": "commands" + }, { "name": "version", "label": "ms-resource:loc.input.label.version", From 48bff48081c3c415eece26255bb969c41fa0ffa9 Mon Sep 17 00:00:00 2001 From: "Deeksitha Merugu (LTIMINDTREE LIMITED)" Date: Tue, 4 Feb 2025 15:21:22 +0530 Subject: [PATCH 6/6] merge conflicts --- .../Strings/resources.resjson/en-US/resources.resjson | 2 ++ Tasks/HelmDeployV1/task.loc.json | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Tasks/HelmDeployV1/Strings/resources.resjson/en-US/resources.resjson b/Tasks/HelmDeployV1/Strings/resources.resjson/en-US/resources.resjson index c4f997f7275d..419545e0304f 100644 --- a/Tasks/HelmDeployV1/Strings/resources.resjson/en-US/resources.resjson +++ b/Tasks/HelmDeployV1/Strings/resources.resjson/en-US/resources.resjson @@ -36,6 +36,8 @@ "loc.input.help.chartName": "Chart reference to install, this can be a url or a chart name. For example, if chart name is 'stable/mysql', the task will run 'helm install stable/mysql'.", "loc.input.label.chartPath": "Chart Path", "loc.input.help.chartPath": "Path to the chart to install. This can be a path to a packaged chart or a path to an unpacked chart directory. For example, if './redis' is specified the task will run 'helm install ./redis'.", + "loc.input.label.remoteRepo": "Remote Repo", + "loc.input.help.remoteRepo": "The remote repository where the chart will be pushed.", "loc.input.label.version": "Version", "loc.input.help.version": "Specify the exact chart version to install. If this is not specified, the latest version is installed. Set the version on the chart to this semver version​", "loc.input.label.releaseName": "Release Name", diff --git a/Tasks/HelmDeployV1/task.loc.json b/Tasks/HelmDeployV1/task.loc.json index 3f2bac5dbad6..08d69732700d 100644 --- a/Tasks/HelmDeployV1/task.loc.json +++ b/Tasks/HelmDeployV1/task.loc.json @@ -215,7 +215,7 @@ "type": "string", "helpMarkDown": "ms-resource:loc.input.help.chartName", "defaultValue": "", - "visibleRule": "chartType == Name || command == create", + "visibleRule": "chartType == Name || command == create ", "required": "true", "groupName": "commands" }, @@ -257,7 +257,7 @@ "type": "string", "helpMarkDown": "ms-resource:loc.input.help.releaseName", "defaultValue": "", - "visibleRule": "command == install || command == upgrade", + "visibleRule": "command == install || command == upgrade || command == rollback || command == uninstall || command == delete", "groupName": "commands" }, { @@ -266,7 +266,7 @@ "type": "string", "helpMarkDown": "ms-resource:loc.input.help.overrideValues", "defaultValue": "", - "visibleRule": "command == install || command == upgrade || command == rollback || command == uninstall || command == delete", + "visibleRule": "command == install || command == upgrade", "groupName": "commands" }, {