@itentialopensource/adapter-kubernetes 0.6.1 → 0.7.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 (115) hide show
  1. package/.eslintignore +1 -0
  2. package/.eslintrc.js +12 -12
  3. package/AUTH.md +39 -0
  4. package/BROKER.md +199 -0
  5. package/CALLS.md +169 -0
  6. package/CHANGELOG.md +54 -19
  7. package/CODE_OF_CONDUCT.md +12 -17
  8. package/CONTRIBUTING.md +88 -74
  9. package/ENHANCE.md +69 -0
  10. package/PROPERTIES.md +641 -0
  11. package/README.md +244 -392
  12. package/SUMMARY.md +9 -0
  13. package/SYSTEMINFO.md +11 -0
  14. package/TROUBLESHOOT.md +47 -0
  15. package/adapter.js +7126 -35
  16. package/adapterBase.js +1331 -50
  17. package/entities/.generic/action.json +214 -0
  18. package/entities/.generic/schema.json +28 -0
  19. package/entities/.system/action.json +1 -1
  20. package/entities/Admissionregistration/action.json +1 -1
  21. package/entities/Admissionregistration_v1beta1/action.json +19 -19
  22. package/entities/Apiextensions/action.json +1 -1
  23. package/entities/Apiextensions_v1beta1/action.json +13 -13
  24. package/entities/Apiregistration/action.json +1 -1
  25. package/entities/Apiregistration_v1/action.json +13 -13
  26. package/entities/Apiregistration_v1beta1/action.json +13 -13
  27. package/entities/Apis/action.json +1 -1
  28. package/entities/Apps/action.json +1 -1
  29. package/entities/Apps_v1/action.json +77 -77
  30. package/entities/Apps_v1beta1/action.json +47 -47
  31. package/entities/Apps_v1beta2/action.json +77 -77
  32. package/entities/Auditregistration/action.json +1 -1
  33. package/entities/Auditregistration_v1alpha1/action.json +10 -10
  34. package/entities/Authentication/action.json +1 -1
  35. package/entities/Authentication_v1/action.json +2 -2
  36. package/entities/Authentication_v1beta1/action.json +2 -2
  37. package/entities/Authorization/action.json +1 -1
  38. package/entities/Authorization_v1/action.json +5 -5
  39. package/entities/Authorization_v1beta1/action.json +5 -5
  40. package/entities/Autoscaling/action.json +1 -1
  41. package/entities/Autoscaling_v1/action.json +15 -15
  42. package/entities/Autoscaling_v2beta1/action.json +15 -15
  43. package/entities/Autoscaling_v2beta2/action.json +15 -15
  44. package/entities/Batch/action.json +1 -1
  45. package/entities/Batch_v1/action.json +15 -15
  46. package/entities/Batch_v1beta1/action.json +15 -15
  47. package/entities/Batch_v2alpha1/action.json +15 -15
  48. package/entities/Certificates/action.json +1 -1
  49. package/entities/Certificates_v1beta1/action.json +14 -14
  50. package/entities/Coordination/action.json +1 -1
  51. package/entities/Coordination_v1/action.json +12 -12
  52. package/entities/Coordination_v1beta1/action.json +12 -12
  53. package/entities/Core/action.json +1 -1
  54. package/entities/Core_v1/action.json +240 -240
  55. package/entities/Events/action.json +1 -1
  56. package/entities/Events_v1beta1/action.json +12 -12
  57. package/entities/Extensions/action.json +1 -1
  58. package/entities/Extensions_v1beta1/action.json +87 -87
  59. package/entities/Logs/action.json +2 -2
  60. package/entities/Networking/action.json +1 -1
  61. package/entities/Networking_v1/action.json +12 -12
  62. package/entities/Networking_v1beta1/action.json +15 -15
  63. package/entities/Node/action.json +1 -1
  64. package/entities/Node_v1alpha1/action.json +10 -10
  65. package/entities/Node_v1beta1/action.json +10 -10
  66. package/entities/Policy/action.json +1 -1
  67. package/entities/Policy_v1beta1/action.json +24 -24
  68. package/entities/RbacAuthorization/action.json +1 -1
  69. package/entities/RbacAuthorization_v1/action.json +41 -41
  70. package/entities/RbacAuthorization_v1alpha1/action.json +41 -41
  71. package/entities/RbacAuthorization_v1beta1/action.json +41 -41
  72. package/entities/Scheduling/action.json +1 -1
  73. package/entities/Scheduling_v1/action.json +10 -10
  74. package/entities/Scheduling_v1alpha1/action.json +10 -10
  75. package/entities/Scheduling_v1beta1/action.json +10 -10
  76. package/entities/Settings/action.json +1 -1
  77. package/entities/Settings_v1alpha1/action.json +12 -12
  78. package/entities/Storage/action.json +1 -1
  79. package/entities/Storage_v1/action.json +22 -22
  80. package/entities/Storage_v1alpha1/action.json +10 -10
  81. package/entities/Storage_v1beta1/action.json +37 -37
  82. package/entities/Version/action.json +1 -1
  83. package/error.json +12 -0
  84. package/package.json +47 -23
  85. package/pronghorn.json +642 -0
  86. package/propertiesDecorators.json +14 -0
  87. package/propertiesSchema.json +505 -11
  88. package/refs?service=git-upload-pack +0 -0
  89. package/report/adapterInfo.json +10 -0
  90. package/report/updateReport1594225120157.json +95 -0
  91. package/report/updateReport1615248177783.json +95 -0
  92. package/report/updateReport1653089036005.json +120 -0
  93. package/sampleProperties.json +110 -6
  94. package/test/integration/adapterTestBasicGet.js +85 -0
  95. package/test/integration/adapterTestConnectivity.js +93 -0
  96. package/test/integration/adapterTestIntegration.js +33 -96
  97. package/test/unit/adapterBaseTestUnit.js +949 -0
  98. package/test/unit/adapterTestUnit.js +643 -104
  99. package/utils/adapterInfo.js +206 -0
  100. package/utils/addAuth.js +94 -0
  101. package/utils/artifactize.js +9 -14
  102. package/utils/basicGet.js +50 -0
  103. package/utils/checkMigrate.js +63 -0
  104. package/utils/entitiesToDB.js +179 -0
  105. package/utils/findPath.js +74 -0
  106. package/utils/modify.js +154 -0
  107. package/utils/packModificationScript.js +1 -1
  108. package/utils/patches2bundledDeps.js +90 -0
  109. package/utils/pre-commit.sh +4 -1
  110. package/utils/removeHooks.js +20 -0
  111. package/utils/tbScript.js +184 -0
  112. package/utils/tbUtils.js +469 -0
  113. package/utils/testRunner.js +16 -16
  114. package/utils/troubleshootingAdapter.js +190 -0
  115. package/gl-code-quality-report.json +0 -1
@@ -4,7 +4,7 @@
4
4
  "name": "getStorageV1beta1APIResources",
5
5
  "protocol": "REST",
6
6
  "method": "GET",
7
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/?{query}",
7
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/?{query}",
8
8
  "requestSchema": "schema.json",
9
9
  "responseSchema": "schema.json",
10
10
  "timeout": 0,
@@ -25,7 +25,7 @@
25
25
  "name": "deleteStorageV1beta1CollectionCSIDriver",
26
26
  "protocol": "REST",
27
27
  "method": "DELETE",
28
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/csidrivers?{query}",
28
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/csidrivers?{query}",
29
29
  "requestSchema": "schema.json",
30
30
  "responseSchema": "schema.json",
31
31
  "timeout": 0,
@@ -46,7 +46,7 @@
46
46
  "name": "listStorageV1beta1CSIDriver",
47
47
  "protocol": "REST",
48
48
  "method": "GET",
49
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/csidrivers?{query}",
49
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/csidrivers?{query}",
50
50
  "requestSchema": "schema.json",
51
51
  "responseSchema": "schema.json",
52
52
  "timeout": 0,
@@ -67,7 +67,7 @@
67
67
  "name": "createStorageV1beta1CSIDriver",
68
68
  "protocol": "REST",
69
69
  "method": "POST",
70
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/csidrivers?{query}",
70
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/csidrivers?{query}",
71
71
  "requestSchema": "schema.json",
72
72
  "responseSchema": "schema.json",
73
73
  "timeout": 0,
@@ -88,7 +88,7 @@
88
88
  "name": "deleteStorageV1beta1CSIDriver",
89
89
  "protocol": "REST",
90
90
  "method": "DELETE",
91
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/csidrivers/{pathv1}?{query}",
91
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/csidrivers/{pathv1}?{query}",
92
92
  "requestSchema": "schema.json",
93
93
  "responseSchema": "schema.json",
94
94
  "timeout": 0,
@@ -109,7 +109,7 @@
109
109
  "name": "readStorageV1beta1CSIDriver",
110
110
  "protocol": "REST",
111
111
  "method": "GET",
112
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/csidrivers/{pathv1}?{query}",
112
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/csidrivers/{pathv1}?{query}",
113
113
  "requestSchema": "schema.json",
114
114
  "responseSchema": "schema.json",
115
115
  "timeout": 0,
@@ -130,7 +130,7 @@
130
130
  "name": "patchStorageV1beta1CSIDriver",
131
131
  "protocol": "REST",
132
132
  "method": "PATCH",
133
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/csidrivers/{pathv1}?{query}",
133
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/csidrivers/{pathv1}?{query}",
134
134
  "requestSchema": "schema.json",
135
135
  "responseSchema": "schema.json",
136
136
  "timeout": 0,
@@ -151,7 +151,7 @@
151
151
  "name": "replaceStorageV1beta1CSIDriver",
152
152
  "protocol": "REST",
153
153
  "method": "PUT",
154
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/csidrivers/{pathv1}?{query}",
154
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/csidrivers/{pathv1}?{query}",
155
155
  "requestSchema": "schema.json",
156
156
  "responseSchema": "schema.json",
157
157
  "timeout": 0,
@@ -172,7 +172,7 @@
172
172
  "name": "deleteStorageV1beta1CollectionCSINode",
173
173
  "protocol": "REST",
174
174
  "method": "DELETE",
175
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/csinodes?{query}",
175
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/csinodes?{query}",
176
176
  "requestSchema": "schema.json",
177
177
  "responseSchema": "schema.json",
178
178
  "timeout": 0,
@@ -193,7 +193,7 @@
193
193
  "name": "listStorageV1beta1CSINode",
194
194
  "protocol": "REST",
195
195
  "method": "GET",
196
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/csinodes?{query}",
196
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/csinodes?{query}",
197
197
  "requestSchema": "schema.json",
198
198
  "responseSchema": "schema.json",
199
199
  "timeout": 0,
@@ -214,7 +214,7 @@
214
214
  "name": "createStorageV1beta1CSINode",
215
215
  "protocol": "REST",
216
216
  "method": "POST",
217
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/csinodes?{query}",
217
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/csinodes?{query}",
218
218
  "requestSchema": "schema.json",
219
219
  "responseSchema": "schema.json",
220
220
  "timeout": 0,
@@ -235,7 +235,7 @@
235
235
  "name": "deleteStorageV1beta1CSINode",
236
236
  "protocol": "REST",
237
237
  "method": "DELETE",
238
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/csinodes/{pathv1}?{query}",
238
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/csinodes/{pathv1}?{query}",
239
239
  "requestSchema": "schema.json",
240
240
  "responseSchema": "schema.json",
241
241
  "timeout": 0,
@@ -256,7 +256,7 @@
256
256
  "name": "readStorageV1beta1CSINode",
257
257
  "protocol": "REST",
258
258
  "method": "GET",
259
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/csinodes/{pathv1}?{query}",
259
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/csinodes/{pathv1}?{query}",
260
260
  "requestSchema": "schema.json",
261
261
  "responseSchema": "schema.json",
262
262
  "timeout": 0,
@@ -277,7 +277,7 @@
277
277
  "name": "patchStorageV1beta1CSINode",
278
278
  "protocol": "REST",
279
279
  "method": "PATCH",
280
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/csinodes/{pathv1}?{query}",
280
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/csinodes/{pathv1}?{query}",
281
281
  "requestSchema": "schema.json",
282
282
  "responseSchema": "schema.json",
283
283
  "timeout": 0,
@@ -298,7 +298,7 @@
298
298
  "name": "replaceStorageV1beta1CSINode",
299
299
  "protocol": "REST",
300
300
  "method": "PUT",
301
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/csinodes/{pathv1}?{query}",
301
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/csinodes/{pathv1}?{query}",
302
302
  "requestSchema": "schema.json",
303
303
  "responseSchema": "schema.json",
304
304
  "timeout": 0,
@@ -319,7 +319,7 @@
319
319
  "name": "deleteStorageV1beta1CollectionStorageClass",
320
320
  "protocol": "REST",
321
321
  "method": "DELETE",
322
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/storageclasses?{query}",
322
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/storageclasses?{query}",
323
323
  "requestSchema": "schema.json",
324
324
  "responseSchema": "schema.json",
325
325
  "timeout": 0,
@@ -340,7 +340,7 @@
340
340
  "name": "listStorageV1beta1StorageClass",
341
341
  "protocol": "REST",
342
342
  "method": "GET",
343
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/storageclasses?{query}",
343
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/storageclasses?{query}",
344
344
  "requestSchema": "schema.json",
345
345
  "responseSchema": "schema.json",
346
346
  "timeout": 0,
@@ -361,7 +361,7 @@
361
361
  "name": "createStorageV1beta1StorageClass",
362
362
  "protocol": "REST",
363
363
  "method": "POST",
364
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/storageclasses?{query}",
364
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/storageclasses?{query}",
365
365
  "requestSchema": "schema.json",
366
366
  "responseSchema": "schema.json",
367
367
  "timeout": 0,
@@ -382,7 +382,7 @@
382
382
  "name": "deleteStorageV1beta1StorageClass",
383
383
  "protocol": "REST",
384
384
  "method": "DELETE",
385
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/storageclasses/{pathv1}?{query}",
385
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/storageclasses/{pathv1}?{query}",
386
386
  "requestSchema": "schema.json",
387
387
  "responseSchema": "schema.json",
388
388
  "timeout": 0,
@@ -403,7 +403,7 @@
403
403
  "name": "readStorageV1beta1StorageClass",
404
404
  "protocol": "REST",
405
405
  "method": "GET",
406
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/storageclasses/{pathv1}?{query}",
406
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/storageclasses/{pathv1}?{query}",
407
407
  "requestSchema": "schema.json",
408
408
  "responseSchema": "schema.json",
409
409
  "timeout": 0,
@@ -424,7 +424,7 @@
424
424
  "name": "patchStorageV1beta1StorageClass",
425
425
  "protocol": "REST",
426
426
  "method": "PATCH",
427
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/storageclasses/{pathv1}?{query}",
427
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/storageclasses/{pathv1}?{query}",
428
428
  "requestSchema": "schema.json",
429
429
  "responseSchema": "schema.json",
430
430
  "timeout": 0,
@@ -445,7 +445,7 @@
445
445
  "name": "replaceStorageV1beta1StorageClass",
446
446
  "protocol": "REST",
447
447
  "method": "PUT",
448
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/storageclasses/{pathv1}?{query}",
448
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/storageclasses/{pathv1}?{query}",
449
449
  "requestSchema": "schema.json",
450
450
  "responseSchema": "schema.json",
451
451
  "timeout": 0,
@@ -466,7 +466,7 @@
466
466
  "name": "deleteStorageV1beta1CollectionVolumeAttachment",
467
467
  "protocol": "REST",
468
468
  "method": "DELETE",
469
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/volumeattachments?{query}",
469
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/volumeattachments?{query}",
470
470
  "requestSchema": "schema.json",
471
471
  "responseSchema": "schema.json",
472
472
  "timeout": 0,
@@ -487,7 +487,7 @@
487
487
  "name": "listStorageV1beta1VolumeAttachment",
488
488
  "protocol": "REST",
489
489
  "method": "GET",
490
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/volumeattachments?{query}",
490
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/volumeattachments?{query}",
491
491
  "requestSchema": "schema.json",
492
492
  "responseSchema": "schema.json",
493
493
  "timeout": 0,
@@ -508,7 +508,7 @@
508
508
  "name": "createStorageV1beta1VolumeAttachment",
509
509
  "protocol": "REST",
510
510
  "method": "POST",
511
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/volumeattachments?{query}",
511
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/volumeattachments?{query}",
512
512
  "requestSchema": "schema.json",
513
513
  "responseSchema": "schema.json",
514
514
  "timeout": 0,
@@ -529,7 +529,7 @@
529
529
  "name": "deleteStorageV1beta1VolumeAttachment",
530
530
  "protocol": "REST",
531
531
  "method": "DELETE",
532
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/volumeattachments/{pathv1}?{query}",
532
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/volumeattachments/{pathv1}?{query}",
533
533
  "requestSchema": "schema.json",
534
534
  "responseSchema": "schema.json",
535
535
  "timeout": 0,
@@ -550,7 +550,7 @@
550
550
  "name": "readStorageV1beta1VolumeAttachment",
551
551
  "protocol": "REST",
552
552
  "method": "GET",
553
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/volumeattachments/{pathv1}?{query}",
553
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/volumeattachments/{pathv1}?{query}",
554
554
  "requestSchema": "schema.json",
555
555
  "responseSchema": "schema.json",
556
556
  "timeout": 0,
@@ -571,7 +571,7 @@
571
571
  "name": "patchStorageV1beta1VolumeAttachment",
572
572
  "protocol": "REST",
573
573
  "method": "PATCH",
574
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/volumeattachments/{pathv1}?{query}",
574
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/volumeattachments/{pathv1}?{query}",
575
575
  "requestSchema": "schema.json",
576
576
  "responseSchema": "schema.json",
577
577
  "timeout": 0,
@@ -592,7 +592,7 @@
592
592
  "name": "replaceStorageV1beta1VolumeAttachment",
593
593
  "protocol": "REST",
594
594
  "method": "PUT",
595
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/volumeattachments/{pathv1}?{query}",
595
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/volumeattachments/{pathv1}?{query}",
596
596
  "requestSchema": "schema.json",
597
597
  "responseSchema": "schema.json",
598
598
  "timeout": 0,
@@ -613,7 +613,7 @@
613
613
  "name": "watchStorageV1beta1CSIDriverList",
614
614
  "protocol": "REST",
615
615
  "method": "GET",
616
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/watch/csidrivers?{query}",
616
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/watch/csidrivers?{query}",
617
617
  "requestSchema": "schema.json",
618
618
  "responseSchema": "schema.json",
619
619
  "timeout": 0,
@@ -634,7 +634,7 @@
634
634
  "name": "watchStorageV1beta1CSIDriver",
635
635
  "protocol": "REST",
636
636
  "method": "GET",
637
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/watch/csidrivers/{pathv1}?{query}",
637
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/watch/csidrivers/{pathv1}?{query}",
638
638
  "requestSchema": "schema.json",
639
639
  "responseSchema": "schema.json",
640
640
  "timeout": 0,
@@ -655,7 +655,7 @@
655
655
  "name": "watchStorageV1beta1CSINodeList",
656
656
  "protocol": "REST",
657
657
  "method": "GET",
658
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/watch/csinodes?{query}",
658
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/watch/csinodes?{query}",
659
659
  "requestSchema": "schema.json",
660
660
  "responseSchema": "schema.json",
661
661
  "timeout": 0,
@@ -676,7 +676,7 @@
676
676
  "name": "watchStorageV1beta1CSINode",
677
677
  "protocol": "REST",
678
678
  "method": "GET",
679
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/watch/csinodes/{pathv1}?{query}",
679
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/watch/csinodes/{pathv1}?{query}",
680
680
  "requestSchema": "schema.json",
681
681
  "responseSchema": "schema.json",
682
682
  "timeout": 0,
@@ -697,7 +697,7 @@
697
697
  "name": "watchStorageV1beta1StorageClassList",
698
698
  "protocol": "REST",
699
699
  "method": "GET",
700
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/watch/storageclasses?{query}",
700
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/watch/storageclasses?{query}",
701
701
  "requestSchema": "schema.json",
702
702
  "responseSchema": "schema.json",
703
703
  "timeout": 0,
@@ -718,7 +718,7 @@
718
718
  "name": "watchStorageV1beta1StorageClass",
719
719
  "protocol": "REST",
720
720
  "method": "GET",
721
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/watch/storageclasses/{pathv1}?{query}",
721
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/watch/storageclasses/{pathv1}?{query}",
722
722
  "requestSchema": "schema.json",
723
723
  "responseSchema": "schema.json",
724
724
  "timeout": 0,
@@ -739,7 +739,7 @@
739
739
  "name": "watchStorageV1beta1VolumeAttachmentList",
740
740
  "protocol": "REST",
741
741
  "method": "GET",
742
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/watch/volumeattachments?{query}",
742
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/watch/volumeattachments?{query}",
743
743
  "requestSchema": "schema.json",
744
744
  "responseSchema": "schema.json",
745
745
  "timeout": 0,
@@ -760,7 +760,7 @@
760
760
  "name": "watchStorageV1beta1VolumeAttachment",
761
761
  "protocol": "REST",
762
762
  "method": "GET",
763
- "entitypath": "{base_path}/{version}apis/storage.k8s.io/v1beta1/watch/volumeattachments/{pathv1}?{query}",
763
+ "entitypath": "{base_path}/{version}/apis/storage.k8s.io/v1beta1/watch/volumeattachments/{pathv1}?{query}",
764
764
  "requestSchema": "schema.json",
765
765
  "responseSchema": "schema.json",
766
766
  "timeout": 0,
@@ -4,7 +4,7 @@
4
4
  "name": "getCodeVersion",
5
5
  "protocol": "REST",
6
6
  "method": "GET",
7
- "entitypath": "{base_path}/{version}version/?{query}",
7
+ "entitypath": "{base_path}/{version}/version/?{query}",
8
8
  "requestSchema": "schema.json",
9
9
  "responseSchema": "schema.json",
10
10
  "timeout": 0,
package/error.json CHANGED
@@ -96,6 +96,12 @@
96
96
  "displayString": "Invalid properties: $VARIABLE$",
97
97
  "recommendation": "Verify the properties for the adapter"
98
98
  },
99
+ {
100
+ "key": "Missing Properties",
101
+ "icode": "AD.306",
102
+ "displayString": "Property $VARIABLE$ is required",
103
+ "recommendation": "Please provide the required property"
104
+ },
99
105
  {
100
106
  "key": "Query Not Translated",
101
107
  "icode": "AD.310",
@@ -168,6 +174,12 @@
168
174
  "displayString": "Failure response received for $VARIABLE$",
169
175
  "recommendation": "Check the reason for failure in the stack trace"
170
176
  },
177
+ {
178
+ "key": "Suspended Adapter",
179
+ "icode": "AD.600",
180
+ "displayString": "Adapter is suspended",
181
+ "recommendation": "Check if external system is functional and unsuspend if appropriate"
182
+ },
171
183
  {
172
184
  "key": "Caught Exception",
173
185
  "icode": "AD.900",
package/package.json CHANGED
@@ -1,19 +1,33 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-kubernetes",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
4
4
  "description": "This adapter integrates with system described as: kubernetes.",
5
5
  "main": "adapter.js",
6
- "wizardVersion": "2.41.8",
7
- "engineVersion": "1.46.3",
6
+ "systemName": "Kubernetes",
7
+ "wizardVersion": "2.44.7",
8
+ "engineVersion": "1.61.6",
9
+ "adapterType": "http",
8
10
  "scripts": {
9
11
  "artifactize": "npm i && node utils/packModificationScript.js",
10
- "preinstall": "node utils/setup.js",
11
- "lint": "eslint . --ext .json --ext .js",
12
+ "preinstall": "node utils/setup.js && npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions",
13
+ "lint": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js",
14
+ "lint:errors": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js --quiet",
15
+ "test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
12
16
  "test:unit": "mocha test/unit/adapterTestUnit.js --LOG=error",
13
17
  "test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
14
18
  "test:cover": "nyc --reporter html --reporter text mocha --reporter dot test/*",
15
- "test": "npm run test:unit && npm run test:integration",
16
- "deploy": "npm publish --registry=http://registry.npmjs.org --access=public",
19
+ "test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
20
+ "adapter:install": "npm i && node utils/tbScript.js install",
21
+ "adapter:checkMigrate": "node utils/checkMigrate.js",
22
+ "adapter:findPath": "node utils/findPath.js",
23
+ "adapter:migrate": "node utils/modify.js -m",
24
+ "adapter:update": "node utils/modify.js -u",
25
+ "adapter:revert": "node utils/modify.js -r",
26
+ "troubleshoot": "node utils/tbScript.js",
27
+ "healthcheck": "node utils/tbScript.js healthcheck",
28
+ "basicget": "node utils/tbScript.js basicget",
29
+ "connectivity": "node utils/tbScript.js connectivity",
30
+ "deploy": "npm publish --registry=https://registry.npmjs.org --access=public",
17
31
  "build": "npm run deploy"
18
32
  },
19
33
  "keywords": [
@@ -29,7 +43,8 @@
29
43
  ],
30
44
  "license": "Apache-2.0",
31
45
  "engines": {
32
- "node": ">= 0.12.7"
46
+ "node": ">= 8.0.0",
47
+ "npm": ">= 6.0.0"
33
48
  },
34
49
  "repository": {
35
50
  "type": "git",
@@ -38,23 +53,32 @@
38
53
  "author": "Itential",
39
54
  "homepage": "https://gitlab.com/itentialopensource/adapters/cloud/adapter-kubernetes#readme",
40
55
  "dependencies": {
41
- "@itentialopensource/adapter-utils": "^4.27.3",
42
- "ajv": "^6.10.0",
43
- "fs-extra": "^7.0.0",
44
- "readline-sync": "^1.4.9",
45
- "xmldom": "^0.1.27",
46
- "package-json-validator": "^0.6.3"
56
+ "@itentialopensource/adapter-utils": "^4.45.6",
57
+ "ajv": "^6.12.0",
58
+ "axios": "^0.21.0",
59
+ "commander": "^2.20.0",
60
+ "fs-extra": "^8.1.0",
61
+ "json-query": "^2.2.2",
62
+ "mocha": "^9.0.1",
63
+ "mocha-param": "^2.0.1",
64
+ "mongodb": "^4.1.0",
65
+ "network-diagnostics": "^0.5.3",
66
+ "nyc": "^15.1.0",
67
+ "readline-sync": "^1.4.10",
68
+ "semver": "^7.3.2",
69
+ "winston": "^3.3.3"
47
70
  },
48
71
  "devDependencies": {
49
- "chai": "^4.1.2",
50
- "eslint": "^5.14.1",
51
- "eslint-config-airbnb-base": "^13.1.0",
52
- "eslint-plugin-import": "^2.16.0",
53
- "eslint-plugin-json": "^1.4.0",
54
- "mocha": "^5.2.0",
55
- "nyc": "^14.1.1",
56
- "testdouble": "^3.8.1",
57
- "winston": "^2.4.0"
72
+ "chai": "^4.3.4",
73
+ "eslint": "^7.29.0",
74
+ "eslint-config-airbnb-base": "^14.2.1",
75
+ "eslint-plugin-import": "^2.23.4",
76
+ "eslint-plugin-json": "^3.0.0",
77
+ "package-json-validator": "^0.6.3",
78
+ "testdouble": "^3.16.1"
79
+ },
80
+ "resolutions": {
81
+ "minimist": "^1.2.5"
58
82
  },
59
83
  "private": false
60
84
  }