Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AzureFunctionOnKubernetesV0/V1] Update task to node16 using codegen #18677

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Place files overridden for this config in this directory

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "azurefunctiononkubernetes",
"version": "1.0.0",
"description": "Deploy Azure Function on Kubernetes",
"main": "src//run.js",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/Microsoft/azure-pipelines-tasks.git"
},
"bugs": {
"url": "https://github.com/microsoft/azure-pipelines-tasks/issues"
},
"homepage": "https://github.com/Microsoft/azure-pipelines-tasks#readme",
"devDependencies": {
"typescript": "4.0.2"
},
"dependencies": {
"@types/mocha": "^5.2.7",
"@types/node": "^16.11.39",
"@types/q": "^1.5.0",
"@types/uuid": "^8.3.0",
"azure-pipelines-task-lib": "^4.4.0",
"azure-pipelines-tasks-docker-common": "2.0.6",
"azure-pipelines-tasks-kubernetes-common": "^2.212.0",
"js-yaml": "3.13.1"
}
}
232 changes: 116 additions & 116 deletions Tasks/AzureFunctionOnKubernetesV0/task.json
Original file line number Diff line number Diff line change
@@ -1,121 +1,121 @@
{
"id": "FD1AA5B9-400C-4F4B-9C0B-069BA74E53C6",
"name": "AzureFunctionOnKubernetes",
"friendlyName": "Azure Function on Kubernetes",
"description": "Deploy Azure function to Kubernetes cluster.",
"helpUrl": "https://aka.ms/func-k8s",
"helpMarkDown": "[Learn more about this task](https://aka.ms/func-k8s) or [see Azure Functions on Kubernetes with KEDA](https://docs.microsoft.com/en-us/azure/azure-functions/functions-kubernetes-keda) or [check out sample-hello-world-azure-functions](https://github.com/kedacore/sample-hello-world-azure-functions)",
"category": "Deploy",
"preview": true,
"visibility": [
"Build",
"Release"
],
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 224,
"Patch": 2
"id": "FD1AA5B9-400C-4F4B-9C0B-069BA74E53C6",
"name": "AzureFunctionOnKubernetes",
"friendlyName": "Azure Function on Kubernetes",
"description": "Deploy Azure function to Kubernetes cluster.",
"helpUrl": "https://aka.ms/func-k8s",
"helpMarkDown": "[Learn more about this task](https://aka.ms/func-k8s) or [see Azure Functions on Kubernetes with KEDA](https://docs.microsoft.com/en-us/azure/azure-functions/functions-kubernetes-keda) or [check out sample-hello-world-azure-functions](https://github.com/kedacore/sample-hello-world-azure-functions)",
"category": "Deploy",
"preview": true,
"visibility": [
"Build",
"Release"
],
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 226,
"Patch": 1
},
"demands": [],
"groups": [
{
"name": "serviceConnections",
"displayName": "Service Connections",
"isExpanded": true
},
"demands": [],
"groups": [
{
"name": "serviceConnections",
"displayName": "Service Connections",
"isExpanded": true
},
{
"name": "commands",
"displayName": "Commands",
"isExpanded": true
}
],
"inputs": [
{
"name": "dockerRegistryServiceConnection",
"type": "connectedService:dockerregistry",
"label": "Docker registry service connection",
"required": true,
"groupName": "serviceConnections",
"helpMarkDown": "Select a Docker registry service connection."
},
{
"name": "kubernetesServiceConnection",
"type": "connectedService:kubernetes",
"label": "Kubernetes service connection",
"required": true,
"groupName": "serviceConnections",
"helpMarkDown": "Select a Kubernetes service connection."
},
{
"name": "namespace",
"type": "string",
"label": "Kubernetes namespace",
"groupName": "commands",
"helpMarkDown": "Kubernetes namespace"
},
{
"name": "secretName",
"type": "string",
"label": "Secret Name",
"groupName": "commands",
"helpMarkDown": "Kubernetes secret containing function config data (for ex. AzureWebJobsStorage: <Azure storage connection string>)"
},
{
"name": "dockerHubNamespace",
"type": "string",
"label": "Docker Hub namespace",
"groupName": "commands",
"helpMarkDown": "Docker Hub namespace. Required for private Docker Hub repository."
},
{
"name": "appName",
"type": "string",
"required": true,
"label": "Application Name",
"groupName": "commands",
"helpMarkDown": "Application Name. The Kubernetes objects created use this name. This should follow Kubernetes naming conventions for resource names."
},
{
"name": "functionRootDirectory",
"type": "filePath",
"label": "Function root directory",
"required": false,
"groupName": "commands",
"helpMarkDown": "Function root directory. Should contain host.json. Docker build and push is performed from this directory."
},
{
"name": "waitForStability",
"type": "boolean",
"label": "Wait for stability",
"groupName": "commands",
"defaultValue": "true",
"helpMarkDown": "Wait for the Kubernetes objects to reach the desired state."
},
{
"name": "arguments",
"type": "string",
"label": "Arguments",
"groupName": "commands",
"helpMarkDown": "Pass arguments to command. Ex:<br>--no-docker --service-type NodePort"
}
],
"dataSourceBindings": [],
"instanceNameFormat": "Func on K8s - deploy",
"execution": {
"Node10": {
"target": "src//run.js"
}
{
"name": "commands",
"displayName": "Commands",
"isExpanded": true
}
],
"inputs": [
{
"name": "dockerRegistryServiceConnection",
"type": "connectedService:dockerregistry",
"label": "Docker registry service connection",
"required": true,
"groupName": "serviceConnections",
"helpMarkDown": "Select a Docker registry service connection."
},
{
"name": "kubernetesServiceConnection",
"type": "connectedService:kubernetes",
"label": "Kubernetes service connection",
"required": true,
"groupName": "serviceConnections",
"helpMarkDown": "Select a Kubernetes service connection."
},
{
"name": "namespace",
"type": "string",
"label": "Kubernetes namespace",
"groupName": "commands",
"helpMarkDown": "Kubernetes namespace"
},
{
"name": "secretName",
"type": "string",
"label": "Secret Name",
"groupName": "commands",
"helpMarkDown": "Kubernetes secret containing function config data (for ex. AzureWebJobsStorage: <Azure storage connection string>)"
},
{
"name": "dockerHubNamespace",
"type": "string",
"label": "Docker Hub namespace",
"groupName": "commands",
"helpMarkDown": "Docker Hub namespace. Required for private Docker Hub repository."
},
"messages": {
"AllContainersNotInReadyState": "All the containers are not in a ready state.",
"CouldNotDeterminePodStatus": "Could not determine the pod's status due to the error: %s",
"CouldNotDetermineServiceStatus": "Could not determine the service %s status due to the error: %s",
"FileContentSynced": "Synced the file content to the disk. The content is %s.",
"KubectlClientVersion": "Kubectl Client Version",
"KubectlServerVersion": "Kubectl Server Version",
"NoDataWrittenOnFile": "No data was written into the file %s",
"ServiceExternalIP": "service %s external IP is %s",
"WritingDockerConfigToTempFile": "Writing Docker config to temp file. File path: %s, Docker config: %s"
{
"name": "appName",
"type": "string",
"required": true,
"label": "Application Name",
"groupName": "commands",
"helpMarkDown": "Application Name. The Kubernetes objects created use this name. This should follow Kubernetes naming conventions for resource names."
},
{
"name": "functionRootDirectory",
"type": "filePath",
"label": "Function root directory",
"required": false,
"groupName": "commands",
"helpMarkDown": "Function root directory. Should contain host.json. Docker build and push is performed from this directory."
},
{
"name": "waitForStability",
"type": "boolean",
"label": "Wait for stability",
"groupName": "commands",
"defaultValue": "true",
"helpMarkDown": "Wait for the Kubernetes objects to reach the desired state."
},
{
"name": "arguments",
"type": "string",
"label": "Arguments",
"groupName": "commands",
"helpMarkDown": "Pass arguments to command. Ex:<br>--no-docker --service-type NodePort"
}
],
"dataSourceBindings": [],
"instanceNameFormat": "Func on K8s - deploy",
"execution": {
"Node10": {
"target": "src//run.js"
}
},
"messages": {
"AllContainersNotInReadyState": "All the containers are not in a ready state.",
"CouldNotDeterminePodStatus": "Could not determine the pod's status due to the error: %s",
"CouldNotDetermineServiceStatus": "Could not determine the service %s status due to the error: %s",
"FileContentSynced": "Synced the file content to the disk. The content is %s.",
"KubectlClientVersion": "Kubectl Client Version",
"KubectlServerVersion": "Kubectl Server Version",
"NoDataWrittenOnFile": "No data was written into the file %s",
"ServiceExternalIP": "service %s external IP is %s",
"WritingDockerConfigToTempFile": "Writing Docker config to temp file. File path: %s, Docker config: %s"
}
}
4 changes: 2 additions & 2 deletions Tasks/AzureFunctionOnKubernetesV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 224,
"Patch": 2
"Minor": 226,
"Patch": 1
},
"demands": [],
"groups": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Place files overridden for this config in this directory
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"rm": [
{
"items": [
"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-tasks-azure-arm-rest/node_modules/azure-pipelines-task-lib",
"node_modules/azure-pipelines-tool-lib/node_modules/azure-pipelines-task-lib",
"node_modules/https-proxy-agent/node_modules/agent-base"
],
"options": "-Rf"
}
]
}
Loading