@storm-software/k8s-tools 0.12.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/{src → dist/src}/generators/helm-chart/schema.d.ts +4 -1
  3. package/{src → dist/src}/generators/helm-dependency/schema.d.ts +4 -1
  4. package/dist/src/types.d.mts +31 -0
  5. package/{src → dist/src}/types.d.ts +9 -6
  6. package/dist/src/types.js +7 -0
  7. package/dist/src/types.mjs +7 -0
  8. package/executors.json +4 -4
  9. package/generators.json +4 -4
  10. package/package.json +1 -84
  11. package/index.d.ts +0 -1
  12. package/index.js +0 -3267
  13. package/meta.json +0 -634
  14. package/src/executors/container-publish/executor.d.ts +0 -7
  15. package/src/executors/container-publish/executor.js +0 -199
  16. package/src/executors/helm-package/executor.d.ts +0 -8
  17. package/src/executors/helm-package/executor.js +0 -252
  18. package/src/executors/index.d.ts +0 -2
  19. package/src/generators/helm-chart/files/chart/.helmignore +0 -23
  20. package/src/generators/helm-chart/files/chart/templates/NOTES.txt +0 -22
  21. package/src/generators/helm-chart/files/chart/templates/_helpers.yaml +0 -62
  22. package/src/generators/helm-chart/files/chart/templates/deployment.yaml +0 -68
  23. package/src/generators/helm-chart/files/chart/templates/hpa.yaml +0 -32
  24. package/src/generators/helm-chart/files/chart/templates/ingress.yaml +0 -61
  25. package/src/generators/helm-chart/files/chart/templates/service.yaml +0 -13
  26. package/src/generators/helm-chart/files/chart/templates/serviceaccount.yaml +0 -13
  27. package/src/generators/helm-chart/files/chart/templates/test/test-connection.yaml +0 -15
  28. package/src/generators/helm-chart/generator.d.ts +0 -8
  29. package/src/generators/helm-chart/generator.js +0 -89
  30. package/src/generators/helm-dependency/generator.d.ts +0 -8
  31. package/src/generators/helm-dependency/generator.js +0 -2757
  32. package/src/generators/index.d.ts +0 -2
  33. package/src/index.d.ts +0 -3
  34. package/src/plugins/docker/_dockerfile.d.ts +0 -9
  35. package/src/plugins/docker/index.d.ts +0 -1
  36. package/src/plugins/docker/index.js +0 -215
  37. package/src/plugins/index.d.ts +0 -1
  38. package/src/utils/client.d.ts +0 -31
  39. package/src/utils/ensure-init.d.ts +0 -9
  40. package/src/utils/prettier.d.ts +0 -9
  41. /package/{src → dist/src}/executors/container-publish/schema.d.ts +0 -0
  42. /package/{src → dist/src}/executors/container-publish/schema.json +0 -0
  43. /package/{src → dist/src}/executors/helm-package/schema.d.ts +0 -0
  44. /package/{src → dist/src}/executors/helm-package/schema.json +0 -0
  45. /package/{src → dist/src}/generators/helm-chart/files/chart/Chart.yaml.template +0 -0
  46. /package/{src → dist/src}/generators/helm-chart/files/chart/values.yaml +0 -0
  47. /package/{src → dist/src}/generators/helm-chart/schema.json +0 -0
  48. /package/{src → dist/src}/generators/helm-dependency/schema.json +0 -0
package/meta.json DELETED
@@ -1,634 +0,0 @@
1
- {
2
- "inputs": {
3
- "packages/k8s-tools/src/executors/container-publish/executor.ts": {
4
- "bytes": 6726,
5
- "imports": [
6
- {
7
- "path": "@nx/devkit",
8
- "kind": "import-statement",
9
- "external": true
10
- },
11
- {
12
- "path": "@storm-software/config",
13
- "kind": "import-statement",
14
- "external": true
15
- },
16
- {
17
- "path": "@storm-software/workspace-tools/utils/apply-workspace-tokens",
18
- "kind": "import-statement",
19
- "external": true
20
- },
21
- {
22
- "path": "@storm-software/workspace-tools/utils/package-helpers",
23
- "kind": "import-statement",
24
- "external": true
25
- },
26
- {
27
- "path": "@storm-software/workspace-tools/utils/toml",
28
- "kind": "import-statement",
29
- "external": true
30
- },
31
- {
32
- "path": "node:https",
33
- "kind": "import-statement",
34
- "external": true
35
- },
36
- {
37
- "path": "@storm-software/config-tools",
38
- "kind": "dynamic-import",
39
- "external": true
40
- }
41
- ],
42
- "format": "esm"
43
- },
44
- "packages/k8s-tools/src/types.ts": {
45
- "bytes": 859,
46
- "imports": [
47
- {
48
- "path": "prettier",
49
- "kind": "import-statement",
50
- "external": true
51
- }
52
- ],
53
- "format": "esm"
54
- },
55
- "packages/k8s-tools/src/utils/ensure-init.ts": {
56
- "bytes": 956,
57
- "imports": [
58
- {
59
- "path": "../types",
60
- "kind": "import-statement",
61
- "external": true
62
- }
63
- ],
64
- "format": "esm"
65
- },
66
- "packages/k8s-tools/src/utils/client.ts": {
67
- "bytes": 3533,
68
- "imports": [
69
- {
70
- "path": "node:child_process",
71
- "kind": "import-statement",
72
- "external": true
73
- },
74
- {
75
- "path": "packages/k8s-tools/src/types.ts",
76
- "kind": "import-statement",
77
- "original": "../types"
78
- },
79
- {
80
- "path": "packages/k8s-tools/src/utils/ensure-init.ts",
81
- "kind": "import-statement",
82
- "original": "./ensure-init"
83
- },
84
- {
85
- "path": "<runtime>",
86
- "kind": "import-statement",
87
- "external": true
88
- }
89
- ],
90
- "format": "esm"
91
- },
92
- "packages/k8s-tools/src/executors/helm-package/executor.ts": {
93
- "bytes": 1977,
94
- "imports": [
95
- {
96
- "path": "@storm-software/workspace-tools/base/base-executor",
97
- "kind": "import-statement",
98
- "external": true
99
- },
100
- {
101
- "path": "packages/k8s-tools/src/utils/client.ts",
102
- "kind": "import-statement",
103
- "original": "../../utils/client"
104
- },
105
- {
106
- "path": "./schema",
107
- "kind": "import-statement",
108
- "external": true
109
- },
110
- {
111
- "path": "@storm-software/config-tools",
112
- "kind": "dynamic-import",
113
- "external": true
114
- }
115
- ],
116
- "format": "esm"
117
- },
118
- "packages/k8s-tools/src/executors/index.ts": {
119
- "bytes": 87,
120
- "imports": [
121
- {
122
- "path": "packages/k8s-tools/src/executors/container-publish/executor.ts",
123
- "kind": "import-statement",
124
- "original": "./container-publish/executor"
125
- },
126
- {
127
- "path": "packages/k8s-tools/src/executors/helm-package/executor.ts",
128
- "kind": "import-statement",
129
- "original": "./helm-package/executor"
130
- }
131
- ],
132
- "format": "esm"
133
- },
134
- "packages/k8s-tools/src/generators/helm-chart/generator.ts": {
135
- "bytes": 1814,
136
- "imports": [
137
- {
138
- "path": "@nx/devkit",
139
- "kind": "import-statement",
140
- "external": true
141
- },
142
- {
143
- "path": "@storm-software/config",
144
- "kind": "import-statement",
145
- "external": true
146
- },
147
- {
148
- "path": "@storm-software/workspace-tools/base/base-generator",
149
- "kind": "import-statement",
150
- "external": true
151
- },
152
- {
153
- "path": "path",
154
- "kind": "import-statement",
155
- "external": true
156
- },
157
- {
158
- "path": "@storm-software/config-tools",
159
- "kind": "dynamic-import",
160
- "external": true
161
- }
162
- ],
163
- "format": "esm"
164
- },
165
- "node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/dist/js-yaml.mjs": {
166
- "bytes": 107533,
167
- "imports": [],
168
- "format": "esm"
169
- },
170
- "packages/k8s-tools/src/generators/helm-dependency/generator.ts": {
171
- "bytes": 3414,
172
- "imports": [
173
- {
174
- "path": "@nx/devkit",
175
- "kind": "import-statement",
176
- "external": true
177
- },
178
- {
179
- "path": "@storm-software/config",
180
- "kind": "import-statement",
181
- "external": true
182
- },
183
- {
184
- "path": "@storm-software/workspace-tools/base/base-generator",
185
- "kind": "import-statement",
186
- "external": true
187
- },
188
- {
189
- "path": "node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/dist/js-yaml.mjs",
190
- "kind": "import-statement",
191
- "original": "js-yaml"
192
- },
193
- {
194
- "path": "@storm-software/config-tools",
195
- "kind": "dynamic-import",
196
- "external": true
197
- }
198
- ],
199
- "format": "esm"
200
- },
201
- "packages/k8s-tools/src/generators/index.ts": {
202
- "bytes": 85,
203
- "imports": [
204
- {
205
- "path": "packages/k8s-tools/src/generators/helm-chart/generator.ts",
206
- "kind": "import-statement",
207
- "original": "./helm-chart/generator"
208
- },
209
- {
210
- "path": "packages/k8s-tools/src/generators/helm-dependency/generator.ts",
211
- "kind": "import-statement",
212
- "original": "./helm-dependency/generator"
213
- }
214
- ],
215
- "format": "esm"
216
- },
217
- "packages/k8s-tools/src/plugins/docker/_dockerfile.ts": {
218
- "bytes": 6662,
219
- "imports": [
220
- {
221
- "path": "@nx/devkit",
222
- "kind": "import-statement",
223
- "external": true
224
- },
225
- {
226
- "path": "@storm-software/workspace-tools/utils/package-helpers",
227
- "kind": "import-statement",
228
- "external": true
229
- },
230
- {
231
- "path": "@storm-software/workspace-tools/utils/project-tags",
232
- "kind": "import-statement",
233
- "external": true
234
- },
235
- {
236
- "path": "@storm-software/workspace-tools/utils/toml",
237
- "kind": "import-statement",
238
- "external": true
239
- },
240
- {
241
- "path": "node:fs",
242
- "kind": "import-statement",
243
- "external": true
244
- },
245
- {
246
- "path": "@storm-software/config-tools",
247
- "kind": "dynamic-import",
248
- "external": true
249
- }
250
- ],
251
- "format": "esm"
252
- },
253
- "packages/k8s-tools/src/plugins/docker/index.ts": {
254
- "bytes": 31,
255
- "imports": [
256
- {
257
- "path": "packages/k8s-tools/src/plugins/docker/_dockerfile.ts",
258
- "kind": "import-statement",
259
- "original": "./_dockerfile"
260
- }
261
- ],
262
- "format": "esm"
263
- },
264
- "packages/k8s-tools/src/plugins/index.ts": {
265
- "bytes": 26,
266
- "imports": [
267
- {
268
- "path": "packages/k8s-tools/src/plugins/docker/index.ts",
269
- "kind": "import-statement",
270
- "original": "./docker"
271
- }
272
- ],
273
- "format": "esm"
274
- },
275
- "packages/k8s-tools/src/index.ts": {
276
- "bytes": 86,
277
- "imports": [
278
- {
279
- "path": "packages/k8s-tools/src/executors/index.ts",
280
- "kind": "import-statement",
281
- "original": "./executors"
282
- },
283
- {
284
- "path": "packages/k8s-tools/src/generators/index.ts",
285
- "kind": "import-statement",
286
- "original": "./generators"
287
- },
288
- {
289
- "path": "packages/k8s-tools/src/plugins/index.ts",
290
- "kind": "import-statement",
291
- "original": "./plugins"
292
- }
293
- ],
294
- "format": "esm"
295
- },
296
- "packages/k8s-tools/index.ts": {
297
- "bytes": 23,
298
- "imports": [
299
- {
300
- "path": "packages/k8s-tools/src/index.ts",
301
- "kind": "import-statement",
302
- "original": "./src"
303
- }
304
- ],
305
- "format": "esm"
306
- }
307
- },
308
- "outputs": {
309
- "dist/packages/k8s-tools/index.js": {
310
- "imports": [
311
- {
312
- "path": "@nx/devkit",
313
- "kind": "require-call",
314
- "external": true
315
- },
316
- {
317
- "path": "@storm-software/workspace-tools/utils/apply-workspace-tokens",
318
- "kind": "require-call",
319
- "external": true
320
- },
321
- {
322
- "path": "@storm-software/workspace-tools/utils/package-helpers",
323
- "kind": "require-call",
324
- "external": true
325
- },
326
- {
327
- "path": "node:https",
328
- "kind": "require-call",
329
- "external": true
330
- },
331
- {
332
- "path": "@storm-software/workspace-tools/base/base-executor",
333
- "kind": "require-call",
334
- "external": true
335
- },
336
- {
337
- "path": "node:child_process",
338
- "kind": "require-call",
339
- "external": true
340
- },
341
- {
342
- "path": "@storm-software/config-tools",
343
- "kind": "dynamic-import",
344
- "external": true
345
- },
346
- {
347
- "path": "@nx/devkit",
348
- "kind": "require-call",
349
- "external": true
350
- },
351
- {
352
- "path": "@storm-software/workspace-tools/base/base-generator",
353
- "kind": "require-call",
354
- "external": true
355
- },
356
- {
357
- "path": "path",
358
- "kind": "require-call",
359
- "external": true
360
- },
361
- {
362
- "path": "@storm-software/config-tools",
363
- "kind": "dynamic-import",
364
- "external": true
365
- },
366
- {
367
- "path": "@nx/devkit",
368
- "kind": "require-call",
369
- "external": true
370
- },
371
- {
372
- "path": "@storm-software/workspace-tools/base/base-generator",
373
- "kind": "require-call",
374
- "external": true
375
- },
376
- {
377
- "path": "@storm-software/config-tools",
378
- "kind": "dynamic-import",
379
- "external": true
380
- },
381
- {
382
- "path": "@nx/devkit",
383
- "kind": "require-call",
384
- "external": true
385
- },
386
- {
387
- "path": "@storm-software/workspace-tools/utils/package-helpers",
388
- "kind": "require-call",
389
- "external": true
390
- },
391
- {
392
- "path": "@storm-software/workspace-tools/utils/project-tags",
393
- "kind": "require-call",
394
- "external": true
395
- },
396
- {
397
- "path": "node:fs",
398
- "kind": "require-call",
399
- "external": true
400
- },
401
- {
402
- "path": "@storm-software/config-tools",
403
- "kind": "dynamic-import",
404
- "external": true
405
- }
406
- ],
407
- "exports": [],
408
- "entryPoint": "packages/k8s-tools/index.ts",
409
- "inputs": {
410
- "packages/k8s-tools/index.ts": {
411
- "bytesInOutput": 447
412
- },
413
- "packages/k8s-tools/src/executors/container-publish/executor.ts": {
414
- "bytesInOutput": 2030
415
- },
416
- "packages/k8s-tools/src/executors/index.ts": {
417
- "bytesInOutput": 0
418
- },
419
- "packages/k8s-tools/src/executors/helm-package/executor.ts": {
420
- "bytesInOutput": 1555
421
- },
422
- "packages/k8s-tools/src/utils/client.ts": {
423
- "bytesInOutput": 3290
424
- },
425
- "packages/k8s-tools/src/types.ts": {
426
- "bytesInOutput": 163
427
- },
428
- "packages/k8s-tools/src/utils/ensure-init.ts": {
429
- "bytesInOutput": 579
430
- },
431
- "packages/k8s-tools/src/index.ts": {
432
- "bytesInOutput": 0
433
- },
434
- "packages/k8s-tools/src/generators/helm-chart/generator.ts": {
435
- "bytesInOutput": 1689
436
- },
437
- "packages/k8s-tools/src/generators/index.ts": {
438
- "bytesInOutput": 0
439
- },
440
- "packages/k8s-tools/src/generators/helm-dependency/generator.ts": {
441
- "bytesInOutput": 2873
442
- },
443
- "node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/dist/js-yaml.mjs": {
444
- "bytesInOutput": 88006
445
- },
446
- "packages/k8s-tools/src/plugins/docker/_dockerfile.ts": {
447
- "bytesInOutput": 5874
448
- },
449
- "packages/k8s-tools/src/plugins/docker/index.ts": {
450
- "bytesInOutput": 0
451
- },
452
- "packages/k8s-tools/src/plugins/index.ts": {
453
- "bytesInOutput": 0
454
- }
455
- },
456
- "bytes": 109385
457
- },
458
- "dist/packages/k8s-tools/src/executors/helm-package/executor.js": {
459
- "imports": [
460
- {
461
- "path": "@storm-software/workspace-tools/base/base-executor",
462
- "kind": "require-call",
463
- "external": true
464
- },
465
- {
466
- "path": "node:child_process",
467
- "kind": "require-call",
468
- "external": true
469
- },
470
- {
471
- "path": "@storm-software/config-tools",
472
- "kind": "dynamic-import",
473
- "external": true
474
- }
475
- ],
476
- "exports": [],
477
- "entryPoint": "packages/k8s-tools/src/executors/helm-package/executor.ts",
478
- "inputs": {
479
- "packages/k8s-tools/src/executors/helm-package/executor.ts": {
480
- "bytesInOutput": 1736
481
- },
482
- "packages/k8s-tools/src/utils/client.ts": {
483
- "bytesInOutput": 3288
484
- },
485
- "packages/k8s-tools/src/types.ts": {
486
- "bytesInOutput": 163
487
- },
488
- "packages/k8s-tools/src/utils/ensure-init.ts": {
489
- "bytesInOutput": 579
490
- }
491
- },
492
- "bytes": 7947
493
- },
494
- "dist/packages/k8s-tools/src/executors/container-publish/executor.js": {
495
- "imports": [
496
- {
497
- "path": "@nx/devkit",
498
- "kind": "require-call",
499
- "external": true
500
- },
501
- {
502
- "path": "@storm-software/workspace-tools/utils/apply-workspace-tokens",
503
- "kind": "require-call",
504
- "external": true
505
- },
506
- {
507
- "path": "@storm-software/workspace-tools/utils/package-helpers",
508
- "kind": "require-call",
509
- "external": true
510
- },
511
- {
512
- "path": "node:https",
513
- "kind": "require-call",
514
- "external": true
515
- },
516
- {
517
- "path": "@storm-software/config-tools",
518
- "kind": "dynamic-import",
519
- "external": true
520
- }
521
- ],
522
- "exports": [],
523
- "entryPoint": "packages/k8s-tools/src/executors/container-publish/executor.ts",
524
- "inputs": {
525
- "packages/k8s-tools/src/executors/container-publish/executor.ts": {
526
- "bytesInOutput": 5914
527
- }
528
- },
529
- "bytes": 7475
530
- },
531
- "dist/packages/k8s-tools/src/generators/helm-chart/generator.js": {
532
- "imports": [
533
- {
534
- "path": "@nx/devkit",
535
- "kind": "require-call",
536
- "external": true
537
- },
538
- {
539
- "path": "@storm-software/workspace-tools/base/base-generator",
540
- "kind": "require-call",
541
- "external": true
542
- },
543
- {
544
- "path": "path",
545
- "kind": "require-call",
546
- "external": true
547
- },
548
- {
549
- "path": "@storm-software/config-tools",
550
- "kind": "dynamic-import",
551
- "external": true
552
- }
553
- ],
554
- "exports": [],
555
- "entryPoint": "packages/k8s-tools/src/generators/helm-chart/generator.ts",
556
- "inputs": {
557
- "packages/k8s-tools/src/generators/helm-chart/generator.ts": {
558
- "bytesInOutput": 1883
559
- }
560
- },
561
- "bytes": 3441
562
- },
563
- "dist/packages/k8s-tools/src/generators/helm-dependency/generator.js": {
564
- "imports": [
565
- {
566
- "path": "@nx/devkit",
567
- "kind": "require-call",
568
- "external": true
569
- },
570
- {
571
- "path": "@storm-software/workspace-tools/base/base-generator",
572
- "kind": "require-call",
573
- "external": true
574
- },
575
- {
576
- "path": "@storm-software/config-tools",
577
- "kind": "dynamic-import",
578
- "external": true
579
- }
580
- ],
581
- "exports": [],
582
- "entryPoint": "packages/k8s-tools/src/generators/helm-dependency/generator.ts",
583
- "inputs": {
584
- "packages/k8s-tools/src/generators/helm-dependency/generator.ts": {
585
- "bytesInOutput": 3051
586
- },
587
- "node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/dist/js-yaml.mjs": {
588
- "bytesInOutput": 87999
589
- }
590
- },
591
- "bytes": 92893
592
- },
593
- "dist/packages/k8s-tools/src/plugins/docker/index.js": {
594
- "imports": [
595
- {
596
- "path": "@nx/devkit",
597
- "kind": "require-call",
598
- "external": true
599
- },
600
- {
601
- "path": "@storm-software/workspace-tools/utils/package-helpers",
602
- "kind": "require-call",
603
- "external": true
604
- },
605
- {
606
- "path": "@storm-software/workspace-tools/utils/project-tags",
607
- "kind": "require-call",
608
- "external": true
609
- },
610
- {
611
- "path": "node:fs",
612
- "kind": "require-call",
613
- "external": true
614
- },
615
- {
616
- "path": "@storm-software/config-tools",
617
- "kind": "dynamic-import",
618
- "external": true
619
- }
620
- ],
621
- "exports": [],
622
- "entryPoint": "packages/k8s-tools/src/plugins/docker/index.ts",
623
- "inputs": {
624
- "packages/k8s-tools/src/plugins/docker/index.ts": {
625
- "bytesInOutput": 238
626
- },
627
- "packages/k8s-tools/src/plugins/docker/_dockerfile.ts": {
628
- "bytesInOutput": 5869
629
- }
630
- },
631
- "bytes": 7750
632
- }
633
- }
634
- }
@@ -1,7 +0,0 @@
1
- import { type ExecutorContext } from "@nx/devkit";
2
- import { StormConfig } from "@storm-software/config";
3
- import type { ContainerPublishExecutorSchema } from "./schema.d";
4
- export default function publishExecutor(options: ContainerPublishExecutorSchema, context: ExecutorContext): AsyncGenerator<undefined, {
5
- success: boolean;
6
- }, unknown>;
7
- export declare const getRegistryVersion: (name: string, config: StormConfig) => Promise<string[]>;