Skip to content

Commit 4c75cb4

Browse files
authored
update AzureFunctionOnKubernetesV0 (#20239)
1 parent d3b2431 commit 4c75cb4

File tree

24 files changed

+1783
-115
lines changed

24 files changed

+1783
-115
lines changed

Tasks/AzureFunctionOnKubernetesV0/_buildConfigs/Node20/package-lock.json

Lines changed: 472 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tasks/AzureFunctionOnKubernetesV0/_buildConfigs/Node20/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
"@types/node": "^20.3.1",
2020
"@types/q": "^1.5.0",
2121
"@types/uuid": "^8.3.0",
22+
"agent-base": "6.0.2",
2223
"azure-pipelines-task-lib": "^4.4.0",
23-
"azure-pipelines-tasks-docker-common": "2.0.6",
24+
"azure-pipelines-tasks-docker-common": "^2.242.0",
2425
"azure-pipelines-tasks-kubernetes-common": "^2.212.0",
2526
"js-yaml": "3.13.1"
2627
}

Tasks/AzureFunctionOnKubernetesV0/make.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"rm": [
33
{
44
"items": [
5+
"node_modules/https-proxy-agent/node_modules/agent-base",
6+
"node_modules/azure-pipelines-tasks-azure-arm-rest/node_modules/agent-base",
57
"node_modules/azure-pipelines-tasks-docker-common/node_modules/azure-pipelines-task-lib",
68
"node_modules/azure-pipelines-tasks-kubernetes-common/node_modules/azure-pipelines-task-lib",
79
"node_modules/azure-pipelines-tool-lib/node_modules/azure-pipelines-task-lib"

Tasks/AzureFunctionOnKubernetesV0/package-lock.json

Lines changed: 400 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tasks/AzureFunctionOnKubernetesV0/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
"@types/node": "^16.11.39",
2020
"@types/q": "^1.5.0",
2121
"@types/uuid": "^8.3.0",
22+
"agent-base": "6.0.2",
2223
"azure-pipelines-task-lib": "^4.4.0",
23-
"azure-pipelines-tasks-docker-common": "2.0.6",
24+
"azure-pipelines-tasks-docker-common": "^2.242.0",
2425
"azure-pipelines-tasks-kubernetes-common": "^2.212.0",
2526
"js-yaml": "3.13.1"
2627
}

Tasks/AzureFunctionOnKubernetesV0/src/dockerConnection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ export class DockerConnection {
99
private connection: ContainerConnection;
1010
private registryAuthenticationToken: RegistryAuthenticationToken;
1111

12-
public open() {
12+
public async open() {
1313
const endpointId = tl.getInput("dockerRegistryServiceConnection", true);
14-
this.registryAuthenticationToken = getDockerRegistryEndpointAuthenticationToken(endpointId);
14+
this.registryAuthenticationToken = await getDockerRegistryEndpointAuthenticationToken(endpointId);
1515
this.connection = new ContainerConnection();
1616
this.connection.open(null, this.registryAuthenticationToken);
1717
}

Tasks/AzureFunctionOnKubernetesV0/src/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async function run() {
2222
const commandHelper = new CommandHelper();
2323
const dockerConnection = new DockerConnection();
2424
const kubernetesConnection = utils.getKubernetesConnection();
25-
dockerConnection.open();
25+
await dockerConnection.open();
2626
kubernetesConnection.open();
2727

2828
try {

Tasks/AzureFunctionOnKubernetesV0/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"version": {
1616
"Major": 0,
1717
"Minor": 244,
18-
"Patch": 0
18+
"Patch": 2
1919
},
2020
"demands": [],
2121
"groups": [

Tasks/AzureFunctionOnKubernetesV0/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"version": {
1616
"Major": 0,
1717
"Minor": 244,
18-
"Patch": 0
18+
"Patch": 2
1919
},
2020
"demands": [],
2121
"groups": [
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Default|0.244.0
2-
Node20_229_2|0.244.1
1+
Default|0.244.2
2+
Node20_229_2|0.244.3

0 commit comments

Comments
 (0)