Skip to content

Commit

Permalink
update AzureFunctionOnKubernetesV0 (#20239)
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisRumyantsev authored Aug 5, 2024
1 parent d3b2431 commit 4c75cb4
Show file tree
Hide file tree
Showing 24 changed files with 1,783 additions and 115 deletions.
506 changes: 472 additions & 34 deletions Tasks/AzureFunctionOnKubernetesV0/_buildConfigs/Node20/package-lock.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
"@types/node": "^20.3.1",
"@types/q": "^1.5.0",
"@types/uuid": "^8.3.0",
"agent-base": "6.0.2",
"azure-pipelines-task-lib": "^4.4.0",
"azure-pipelines-tasks-docker-common": "2.0.6",
"azure-pipelines-tasks-docker-common": "^2.242.0",
"azure-pipelines-tasks-kubernetes-common": "^2.212.0",
"js-yaml": "3.13.1"
}
Expand Down
2 changes: 2 additions & 0 deletions Tasks/AzureFunctionOnKubernetesV0/make.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"rm": [
{
"items": [
"node_modules/https-proxy-agent/node_modules/agent-base",
"node_modules/azure-pipelines-tasks-azure-arm-rest/node_modules/agent-base",
"node_modules/azure-pipelines-tasks-docker-common/node_modules/azure-pipelines-task-lib",
"node_modules/azure-pipelines-tasks-kubernetes-common/node_modules/azure-pipelines-task-lib",
"node_modules/azure-pipelines-tool-lib/node_modules/azure-pipelines-task-lib"
Expand Down
409 changes: 400 additions & 9 deletions Tasks/AzureFunctionOnKubernetesV0/package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion Tasks/AzureFunctionOnKubernetesV0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
"@types/node": "^16.11.39",
"@types/q": "^1.5.0",
"@types/uuid": "^8.3.0",
"agent-base": "6.0.2",
"azure-pipelines-task-lib": "^4.4.0",
"azure-pipelines-tasks-docker-common": "2.0.6",
"azure-pipelines-tasks-docker-common": "^2.242.0",
"azure-pipelines-tasks-kubernetes-common": "^2.212.0",
"js-yaml": "3.13.1"
}
Expand Down
4 changes: 2 additions & 2 deletions Tasks/AzureFunctionOnKubernetesV0/src/dockerConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export class DockerConnection {
private connection: ContainerConnection;
private registryAuthenticationToken: RegistryAuthenticationToken;

public open() {
public async open() {
const endpointId = tl.getInput("dockerRegistryServiceConnection", true);
this.registryAuthenticationToken = getDockerRegistryEndpointAuthenticationToken(endpointId);
this.registryAuthenticationToken = await getDockerRegistryEndpointAuthenticationToken(endpointId);
this.connection = new ContainerConnection();
this.connection.open(null, this.registryAuthenticationToken);
}
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureFunctionOnKubernetesV0/src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function run() {
const commandHelper = new CommandHelper();
const dockerConnection = new DockerConnection();
const kubernetesConnection = utils.getKubernetesConnection();
dockerConnection.open();
await dockerConnection.open();
kubernetesConnection.open();

try {
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureFunctionOnKubernetesV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"version": {
"Major": 0,
"Minor": 244,
"Patch": 0
"Patch": 2
},
"demands": [],
"groups": [
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureFunctionOnKubernetesV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"version": {
"Major": 0,
"Minor": 244,
"Patch": 0
"Patch": 2
},
"demands": [],
"groups": [
Expand Down
4 changes: 2 additions & 2 deletions _generated/AzureFunctionOnKubernetesV0.versionmap.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Default|0.244.0
Node20_229_2|0.244.1
Default|0.244.2
Node20_229_2|0.244.3
2 changes: 2 additions & 0 deletions _generated/AzureFunctionOnKubernetesV0/make.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"rm": [
{
"items": [
"node_modules/https-proxy-agent/node_modules/agent-base",
"node_modules/azure-pipelines-tasks-azure-arm-rest/node_modules/agent-base",
"node_modules/azure-pipelines-tasks-docker-common/node_modules/azure-pipelines-task-lib",
"node_modules/azure-pipelines-tasks-kubernetes-common/node_modules/azure-pipelines-task-lib",
"node_modules/azure-pipelines-tool-lib/node_modules/azure-pipelines-task-lib"
Expand Down
Loading

0 comments on commit 4c75cb4

Please sign in to comment.