-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
360 lines (360 loc) · 15.5 KB
/
package.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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
{
"name": "k3d",
"displayName": "k3d - K3s in Docker",
"description": "Manage k3d clusters from VS Code",
"version": "0.0.1",
"preview": true,
"publisher": "k3d-io",
"engines": {
"vscode": "^1.75.1"
},
"license": "MIT",
"categories": [
"Other"
],
"keywords": [
"kubernetes",
"k3d",
"kubernetes-extension-cloud-provider"
],
"icon": "images/k3d_logo_black_blue.png",
"galleryBanner": {
"theme": "light"
},
"homepage": "https://github.com/k3d-io/vscode-k3d/blob/master/README.md",
"activationEvents": [
"onCommand:extension.vsKubernetesConfigureFromCluster",
"onCommand:extension.vsKubernetesCreateCluster",
"onView:kubernetes.cloudExplorer"
],
"main": "./dist/extension",
"contributes": {
"configuration": [
{
"title": "k3d - K3s in Docker",
"description": "Configuration for the k3d Kubernetes provider.",
"properties": {
"k3d.paths": {
"type": "object",
"title": "k3d path",
"description": "k3d executable path",
"properties": {
"k3d.paths.k3d": {
"type": "string",
"default": "k3d",
"description": "k3d executable path."
},
"k3d.paths.k3d-linux": {
"type": "string",
"default": "k3d",
"description": "k3d executable path (on Linux)."
},
"k3d.paths.k3d-mac": {
"type": "string",
"default": "k3d",
"description": "k3d executable path (on Mac)."
},
"k3d.paths.k3d-windows": {
"type": "string",
"default": "k3d",
"description": "k3d executable path (on Windows)."
}
}
},
"k3d.defaults": {
"type": "object",
"title": "New k3d cluster defaults",
"description": "Default values for new k3d clusters",
"properties": {
"k3d.defaults.numServers": {
"type": "integer",
"default": 1,
"minimum": 1,
"maximum": 100,
"description": "Default number of server nodes for new k3d clusters."
},
"k3d.defaults.numAgents": {
"type": "integer",
"default": 0,
"minimum": 0,
"maximum": 100,
"description": "Default number of agent nodes for new k3d clusters."
},
"k3d.defaults.network": {
"type": "string",
"default": "",
"description": "Default existing network for new k3d cluster."
},
"k3d.defaults.image": {
"type": "string",
"default": "",
"description": "Default image for new k3d clusters."
},
"k3d.defaults.serverArgs": {
"type": "string",
"default": "",
"markdownDescription": "Default [K3S server arguments](https://rancher.com/docs/k3s/latest/en/installation/install-options/server-config/) for new k3d clusters."
},
"k3d.defaults.createRegistry": {
"type": "boolean",
"default": false,
"description": "Create a new registry by default for new k3d clusters."
},
"k3d.defaults.useRegistries": {
"type": "array",
"default": [],
"description": "Use these registries by default for new k3d clusters."
},
"k3d.defaults.growServers": {
"type": "boolean",
"default": false,
"description": "Create new k3d clusters with the right flags for growing the group of server nodes."
}
}
},
"k3d.images": {
"type": "object",
"description": "Settings for images used for creating new k3d cluster nodes",
"properties": {
"k3d.images.proposalsRegistry": {
"type": "string",
"default": "https://registry.hub.docker.com",
"format": "uri",
"examples": [
"https://registry.hub.docker.com"
],
"description": "Registry used for looking for images for the cluster (defaults to the Docker Hub)."
},
"k3d.images.proposalsRepo": {
"type": "string",
"default": "rancher/k3s",
"examples": [
"rancher/k3s"
],
"markdownDescription": "Image repository used for proposing different images, including the namespace (ie, `rancher/k3s`)."
},
"k3d.images.proposalsTagRegex": {
"type": "string",
"default": "",
"examples": [
".*1\\.19.*"
],
"markdownDescription": "Filter images by a _regex_ (ie, `.*v1\\.19.*` for filtering all the images with _1.19_)."
}
}
},
"k3d.dockerHost": {
"type": "string",
"markdownDescription": "Equivalent to setting the DOCKER_HOST environment variable (for example, ssh://myuser@mymachine or tcp://1.2.3.4). When not provided, it will use the value specified in the `#docker.host#` setting from the Docker extension (if present), or the local daemon.",
"default": ""
},
"k3d.updateChannel": {
"type": "string",
"enum": [
"stable",
"all"
],
"markdownEnumDescriptions": [
"Only consider **stable** releases",
"Consider any k3d release (including `alpha` and `beta` releases)"
],
"default": "all",
"description": "Versions of k3d that will be considered when downloading the binary from the list of GitHub releases."
},
"k3d.updateKubeconfig": {
"type": "string",
"enum": [
"onCreate",
"always",
"never"
],
"markdownEnumDescriptions": [
"Update the `kubeconfig` file only after creating a new cluster",
"Always update the `kubeconfig` file",
"Do not modify the existing `kubeconfig` file"
],
"default": "always",
"description": "Update the kubeconfig after creating or deleting a cluster."
},
"k3d.replaceContext": {
"type": "string",
"enum": [
"new",
"oldest"
],
"markdownEnumDescriptions": [
"Wait until the new cluster is ready for switching to it when replacing clusters",
"Switch to the oldest, existing cluster immediately"
],
"default": "new",
"description": "When replacing clusters, the new cluster will be automatically activated by default ('new'). However, when some other clusters exist, we can switch to the oldest, existing cluster immediately, not waiting for the new cluster ('oldest')."
}
}
}
],
"commands": [
{
"command": "extension.vsKubernetesk3dCreate",
"category": "Kubernetes: k3d",
"title": "Create Cluster"
},
{
"command": "extension.vsKubernetesk3dCreateLast",
"category": "Kubernetes: k3d",
"title": "Create Cluster (with last settings)"
},
{
"command": "extension.vsKubernetesk3dDelete",
"category": "Kubernetes: k3d",
"title": "Delete Cluster"
},
{
"command": "extension.vsKubernetesk3dReplace",
"category": "Kubernetes: k3d",
"title": "Replace Cluster"
},
{
"command": "extension.vsKubernetesk3dReplaceLast",
"category": "Kubernetes: k3d",
"title": "Replace Cluster (with last settings)"
},
{
"command": "extension.vsKubernetesk3dAddAgent",
"category": "Kubernetes: k3d",
"title": "Add an Agent node"
},
{
"command": "extension.vsKubernetesk3dDeleteAgent",
"category": "Kubernetes: k3d",
"title": "Delete an Agent node"
},
{
"command": "extension.vsKubernetesk3dAddServer",
"category": "Kubernetes: k3d",
"title": "Add a Server node"
},
{
"command": "extension.vsKubernetesk3dDeleteServer",
"category": "Kubernetes: k3d",
"title": "Delete a Server node"
}
],
"keybindings": [
{
"command": "extension.vsKubernetesk3dCreateLast",
"key": "ctrl+k ctrl+c"
},
{
"command": "extension.vsKubernetesk3dReplaceLast",
"key": "ctrl+k ctrl+r"
}
],
"menus": {
"view/item/context": [
{
"command": "extension.vsKubernetesk3dCreate",
"group": "Kubernetes: k3d: create",
"when": "viewItem == kubernetes.cloudExplorer.cloud.k3d"
},
{
"command": "extension.vsKubernetesk3dCreateLast",
"group": "Kubernetes: k3d: create",
"when": "viewItem == kubernetes.cloudExplorer.cloud.k3d"
},
{
"command": "extension.vsKubernetesk3dDelete",
"group": "Kubernetes: k3d: create",
"when": "viewItem =~ /k3d\\.cluster/"
},
{
"command": "extension.vsKubernetesk3dReplace",
"group": "Kubernetes: k3d: create",
"when": "viewItem =~ /k3d\\.cluster/"
},
{
"command": "extension.vsKubernetesk3dReplaceLast",
"group": "Kubernetes: k3d: create",
"when": "viewItem =~ /k3d\\.cluster/"
},
{
"command": "extension.vsKubernetesk3dAddAgent",
"group": "Kubernetes: k3d: nodes",
"when": "viewItem =~ /k3d\\.cluster/"
},
{
"command": "extension.vsKubernetesk3dDeleteAgent",
"group": "Kubernetes: k3d: nodes",
"when": "viewItem =~ /k3d\\.nodeAgentRemovable/"
},
{
"command": "extension.vsKubernetesk3dAddServer",
"group": "Kubernetes: k3d: nodes",
"when": "viewItem =~ /k3d\\.clusterServerGrowable/"
},
{
"command": "extension.vsKubernetesk3dDeleteServer",
"group": "Kubernetes: k3d: nodes",
"when": "viewItem =~ /k3d\\.nodeServerRemovable/"
}
]
}
},
"scripts": {
"compile": "webpack --mode none",
"watch": "webpack --mode none --watch",
"test": "npm run compile",
"test-compile": "tsc -p ./",
"lint": "npx eslint . --ext .ts",
"lint:fix": "npx eslint . --ext .ts --fix",
"vscode:prepublish": "webpack --mode production",
"dist": "vsce package",
"dist-tools": "npm install -g vsce"
},
"extensionDependencies": [
"ms-kubernetes-tools.vscode-kubernetes-tools"
],
"devDependencies": {
"@types/dedent": "^0.7.0",
"@types/mocha": "^10.0.1",
"@types/node": "^18.13.0",
"@types/request-promise-native": "^1.0.18",
"@types/shelljs": "^0.8.11",
"@types/tmp": "0.2.3",
"@types/url-join": "^4.0.1",
"@types/vscode": "^1.75.1",
"@typescript-eslint/eslint-plugin": "^5.52.0",
"@typescript-eslint/parser": "^5.52.0",
"@vscode/test-electron": "^2.2.3",
"eslint": "^8.34.0",
"ts-loader": "^9.4.2",
"typescript": "^4.9.5",
"vsce": "^2.15.0",
"webpack": "^5.76.0",
"webpack-cli": "^5.0.1"
},
"dependencies": {
"@octokit/rest": "^19.0.7",
"dedent": "^0.7.0",
"docker-cli-js": "^2.10.0",
"docker-client": "^1.38.1",
"download": "^8.0.0",
"mkdirp": "^2.1.3",
"replace-string": "^4.0.0",
"request": "^2.88.2",
"request-promise-native": "^1.0.9",
"rxjs": "^7.8.0",
"shelljs": "^0.8.5",
"spawn-rx": "^3.0.0",
"tmp": "^0.2.1",
"url-join": "^5.0.0",
"vscode-azureextensionui": "^0.50.0",
"vscode-kubernetes-tools-api": "^1.3.0"
},
"repository": {
"type": "git",
"url": "https://github.com/k3d-io/vscode-k3d"
},
"bugs": {
"url": "https://github.com/k3d-io/vscode-k3d/issues"
}
}