-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathtask.json
159 lines (159 loc) · 4.75 KB
/
task.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{
"id": "69a85a38-f912-4fe6-98de-d97f8afa2f80",
"name": "config-map",
"friendlyName": "Update ConfigMap",
"description": "Applies environment properties to specified OpenShift ConfigMap.",
"author": "Red Hat",
"helpMarkDown": "See [getting started](https://github.com/redhat-developer/openshift-vsts/blob/master/docs/getting-started.md)",
"category": "Utility",
"visibility": [
"Build",
"Release"
],
"preview": true,
"demands": [],
"groups": [
{
"name": "openshiftCluster",
"displayName": "OpenShift Cluster",
"isExpanded": true
},
{
"name": "commands",
"displayName": "Commands",
"isExpanded": true
}
],
"version": {
"Major": 4,
"Minor": 0,
"Patch": 1
},
"minimumAgentVersion": "3.232.1",
"instanceNameFormat": "config-map $(message)",
"inputs": [
{
"name": "connectionType",
"type": "pickList",
"label": "Service connection type",
"defaultValue": "OpenShift Connection Service",
"required": true,
"options": {
"OpenShift Connection Service": "OpenShift Connection Service",
"Runtime Configuration": "Set Up Configuration on Runtime"
},
"groupName": "openshiftCluster",
"helpMarkDown": "Select a service connection type."
},
{
"name": "openshiftService",
"type": "connectedService:openshift",
"label": "OpenShift service connection",
"groupName": "openshiftCluster",
"helpMarkDown": "Select OpenShift service connection to use.",
"required": true,
"visibleRule": "connectionType = OpenShift Connection Service"
},
{
"name": "configurationType",
"type": "radio",
"label": "Configuration type",
"defaultValue": "file",
"groupName": "openshiftCluster",
"helpMarkDown": "Type of configuration for oc command. It can be a file path or an inline script.",
"options": {
"file": "File Path",
"inline": "Inline Configuration"
},
"visibleRule": "connectionType = Runtime Configuration"
},
{
"name": "configurationPath",
"type": "filePath",
"label": "File Path",
"defaultValue": "",
"required": true,
"helpMarkDown": "Filename, directory, or URL to the kubeconfig file that will be used with the commands.",
"groupName": "openshiftCluster",
"visibleRule": "configurationType = file"
},
{
"name": "inlineConfig",
"type": "multiLine",
"properties": {
"resizable": "true",
"rows": "10",
"maxLength": "5000"
},
"required": true,
"defaultValue": "",
"label": "Inline configuration",
"helpMarkDown": "Inline kubeconfig for oc command",
"groupName": "openshiftCluster",
"visibleRule": "configurationType = inline"
},
{
"name": "version",
"type": "string",
"label": "Version of oc",
"defaultValue": "",
"required": false,
"groupName": "commands",
"helpMarkDown": "Select the oc version to use e.g. 'v3.10.0' (leave blank for latest). You can also specify a direct URL to a oc release bundle."
},
{
"name": "configMapName",
"type": "string",
"label": "Name of the ConfigMap",
"defaultValue": "",
"required": true,
"groupName": "commands",
"helpMarkDown": "Name of the ConfigMap to which to apply the properties."
},
{
"name": "namespace",
"type": "string",
"label": "Namespace of ConfigMap",
"defaultValue": "",
"required": false,
"groupName": "commands",
"helpMarkDown": "Specify the namespace of the ConfigName. If none is specified the current namespace is used."
},
{
"name": "properties",
"type": "multiLine",
"label": "ConfigMap properties",
"defaultValue": "",
"required": false,
"helpMarkDown": "To view the ConfigMap parameters in a grid, click on “…” next to the textbox.",
"groupName": "commands",
"properties": {
"editorExtension": "ms.vss-services-azure.parameters-grid"
}
},
{
"name": "uselocalOc",
"type": "boolean",
"label": "Use local oc executable",
"defaultValue": "false",
"required": false,
"groupName": "commands",
"helpMarkDown": "Check if oc is already installed in the machine and use that if available"
},
{
"name": "proxy",
"type": "string",
"label": "Use proxy to download oc executable",
"defaultValue": "",
"required": false,
"groupName": "commands",
"helpMarkDown": "make use of a proxy to download oc executable"
}
],
"execution": {
"Node20_1": {
"target": "lib/config-map-task.js",
"workingDirectory": "$(currentDirectory)"
}
}
}