@codiac.io/codiac-cli 1.3.57 → 1.3.60

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 (119) hide show
  1. package/README.md +1 -1
  2. package/dist/apis/codiac-api/gen/contracts.d.ts +39 -4
  3. package/dist/apis/codiac-api/gen/contracts.js +3 -0
  4. package/dist/apis/codiac-api/gen/contracts.js.map +1 -1
  5. package/dist/apis/codiac-relay/gen/client.d.ts +7 -2
  6. package/dist/apis/codiac-relay/gen/client.js +42 -0
  7. package/dist/apis/codiac-relay/gen/client.js.map +1 -1
  8. package/dist/apis/codiac-relay/gen/contracts.d.ts +60 -4
  9. package/dist/apis/codiac-relay/gen/contracts.js +3 -0
  10. package/dist/apis/codiac-relay/gen/contracts.js.map +1 -1
  11. package/dist/codiac-entities/cluster-capture-def.d.ts +2 -0
  12. package/dist/codiac-entities/cluster-capture-def.js +3 -0
  13. package/dist/codiac-entities/cluster-capture-def.js.map +1 -0
  14. package/dist/command-base-enterprise.d.ts +4 -1
  15. package/dist/command-base-enterprise.js +9 -2
  16. package/dist/command-base-enterprise.js.map +1 -1
  17. package/dist/command-base-exec-tenant.d.ts +3 -2
  18. package/dist/command-base-exec-tenant.js +3 -2
  19. package/dist/command-base-exec-tenant.js.map +1 -1
  20. package/dist/command-base-exec.js +9 -1
  21. package/dist/command-base-exec.js.map +1 -1
  22. package/dist/commands/asset/deploy.js +4 -1
  23. package/dist/commands/asset/deploy.js.map +1 -1
  24. package/dist/commands/asset/list.js +2 -1
  25. package/dist/commands/asset/list.js.map +1 -1
  26. package/dist/commands/asset/probe/create.js +2 -1
  27. package/dist/commands/asset/probe/create.js.map +1 -1
  28. package/dist/commands/asset/recycle.js +3 -2
  29. package/dist/commands/asset/recycle.js.map +1 -1
  30. package/dist/commands/asset/undeploy.js +2 -1
  31. package/dist/commands/asset/undeploy.js.map +1 -1
  32. package/dist/commands/asset/view.js +2 -2
  33. package/dist/commands/asset/view.js.map +1 -1
  34. package/dist/commands/asset/volume/create.js +2 -1
  35. package/dist/commands/asset/volume/create.js.map +1 -1
  36. package/dist/commands/asset/volume/delete.js +2 -1
  37. package/dist/commands/asset/volume/delete.js.map +1 -1
  38. package/dist/commands/asset/volume/list.js +2 -1
  39. package/dist/commands/asset/volume/list.js.map +1 -1
  40. package/dist/commands/cabinet/create.js +2 -2
  41. package/dist/commands/cabinet/list.js +2 -1
  42. package/dist/commands/cabinet/list.js.map +1 -1
  43. package/dist/commands/cabinet/obliterate.js +2 -1
  44. package/dist/commands/cabinet/obliterate.js.map +1 -1
  45. package/dist/commands/cluster/connect.d.ts +1 -0
  46. package/dist/commands/cluster/connect.js +6 -1
  47. package/dist/commands/cluster/connect.js.map +1 -1
  48. package/dist/commands/config/add.js +5 -11
  49. package/dist/commands/config/add.js.map +1 -1
  50. package/dist/commands/config/delete.js +1 -1
  51. package/dist/commands/config/delete.js.map +1 -1
  52. package/dist/commands/config/deploy.js +2 -1
  53. package/dist/commands/config/deploy.js.map +1 -1
  54. package/dist/commands/config/import.js +2 -1
  55. package/dist/commands/config/import.js.map +1 -1
  56. package/dist/commands/config/settings/get.js +1 -1
  57. package/dist/commands/config/settings/get.js.map +1 -1
  58. package/dist/commands/config/view.js +2 -1
  59. package/dist/commands/config/view.js.map +1 -1
  60. package/dist/commands/deploy.js +2 -1
  61. package/dist/commands/deploy.js.map +1 -1
  62. package/dist/commands/env/add.js +2 -1
  63. package/dist/commands/env/add.js.map +1 -1
  64. package/dist/commands/environment/list.js +2 -1
  65. package/dist/commands/environment/list.js.map +1 -1
  66. package/dist/commands/filestore/capture.d.ts +26 -7
  67. package/dist/commands/filestore/capture.js +174 -258
  68. package/dist/commands/filestore/capture.js.map +1 -1
  69. package/dist/commands/filestore/list.js +7 -3
  70. package/dist/commands/filestore/list.js.map +1 -1
  71. package/dist/commands/kit/create.js +4 -3
  72. package/dist/commands/kit/create.js.map +1 -1
  73. package/dist/commands/noc/cluster/capture.d.ts +30 -0
  74. package/dist/commands/noc/cluster/capture.js +165 -0
  75. package/dist/commands/noc/cluster/capture.js.map +1 -0
  76. package/dist/commands/noc/cluster/forget.d.ts +1 -0
  77. package/dist/commands/noc/cluster/forget.js +10 -5
  78. package/dist/commands/noc/cluster/forget.js.map +1 -1
  79. package/dist/commands/secretStore/capture.d.ts +0 -3
  80. package/dist/commands/secretStore/capture.js +2 -18
  81. package/dist/commands/secretStore/capture.js.map +1 -1
  82. package/dist/ops/k8s/k8s-utils.d.ts +1 -1
  83. package/dist/ops/k8s/k8s-utils.js +5 -2
  84. package/dist/ops/k8s/k8s-utils.js.map +1 -1
  85. package/dist/ops/throwing-user-input-provider.js +11 -9
  86. package/dist/ops/throwing-user-input-provider.js.map +1 -1
  87. package/dist/relay/contracts/contracts.d.ts +1 -53
  88. package/dist/relay/contracts/contracts.js +61 -60
  89. package/dist/relay/contracts/contracts.js.map +1 -1
  90. package/dist/relay/relay-container.js +1 -1
  91. package/dist/uilogic/cloud-resource-configurator-factory.d.ts +10 -0
  92. package/dist/uilogic/cloud-resource-configurator-factory.js +32 -1
  93. package/dist/uilogic/cloud-resource-configurator-factory.js.map +1 -1
  94. package/dist/uilogic/cloud-resource-configurators/aws-resource-configurator.d.ts +10 -2
  95. package/dist/uilogic/cloud-resource-configurators/aws-resource-configurator.js +60 -0
  96. package/dist/uilogic/cloud-resource-configurators/aws-resource-configurator.js.map +1 -1
  97. package/dist/uilogic/cloud-resource-configurators/azure-resource-configurator.d.ts +21 -2
  98. package/dist/uilogic/cloud-resource-configurators/azure-resource-configurator.js +274 -5
  99. package/dist/uilogic/cloud-resource-configurators/azure-resource-configurator.js.map +1 -1
  100. package/dist/uilogic/config-ui-utils.d.ts +3 -1
  101. package/dist/uilogic/config-ui-utils.js +5 -3
  102. package/dist/uilogic/config-ui-utils.js.map +1 -1
  103. package/dist/uilogic/enterprise-contextualizer.js +5 -0
  104. package/dist/uilogic/enterprise-contextualizer.js.map +1 -1
  105. package/dist/uilogic/i-cluster-configurator.d.ts +6 -1
  106. package/dist/uilogic/i-file-store-configurator.d.ts +6 -0
  107. package/dist/uilogic/i-file-store-configurator.js +3 -0
  108. package/dist/uilogic/i-file-store-configurator.js.map +1 -0
  109. package/dist/uilogic/index.d.ts +1 -0
  110. package/dist/uilogic/index.js +1 -0
  111. package/dist/uilogic/index.js.map +1 -1
  112. package/dist/uilogic/rootmap-ui-utils.d.ts +3 -1
  113. package/dist/uilogic/rootmap-ui-utils.js +8 -3
  114. package/dist/uilogic/rootmap-ui-utils.js.map +1 -1
  115. package/dist/uilogic/type-safety-utils.d.ts +11 -0
  116. package/dist/uilogic/type-safety-utils.js +46 -0
  117. package/dist/uilogic/type-safety-utils.js.map +1 -0
  118. package/oclif.manifest.json +193 -31
  119. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.3.57",
2
+ "version": "1.3.60",
3
3
  "commands": {
4
4
  "branch": {
5
5
  "id": "branch",
@@ -2363,11 +2363,11 @@
2363
2363
  "hiddenAliases": [],
2364
2364
  "examples": [
2365
2365
  {
2366
- "description": "Create a cabinet interativley.",
2366
+ "description": "Create a cabinet interatively.",
2367
2367
  "command": "cod cabinet create"
2368
2368
  },
2369
2369
  {
2370
- "description": "Create a cabinet interativley and assemble a non-interactive command string.",
2370
+ "description": "Create a cabinet interatively and assemble a non-interactive command string.",
2371
2371
  "command": "cod cabinet create --echo"
2372
2372
  },
2373
2373
  {
@@ -4098,17 +4098,20 @@
4098
4098
  "required": false,
4099
4099
  "multiple": false
4100
4100
  },
4101
- "providerSubscriptionId": {
4102
- "name": "providerSubscriptionId",
4101
+ "provider": {
4102
+ "name": "provider",
4103
4103
  "type": "option",
4104
- "description": "The identifier of the cloud provider subscription under which the file storage account resides.",
4104
+ "description": "The cloud provider under which the file storage account resides.",
4105
4105
  "required": false,
4106
- "multiple": false
4106
+ "multiple": false,
4107
+ "options": [
4108
+ "azure"
4109
+ ]
4107
4110
  },
4108
- "resourceGroup": {
4109
- "name": "resourceGroup",
4111
+ "providerSubscriptionId": {
4112
+ "name": "providerSubscriptionId",
4110
4113
  "type": "option",
4111
- "description": "The name of the Azure resource group under which the instance is to be created (Azure-specific).",
4114
+ "description": "The identifier of the cloud provider subscription under which the file storage account resides.",
4112
4115
  "required": false,
4113
4116
  "multiple": false
4114
4117
  },
@@ -4126,21 +4129,58 @@
4126
4129
  "required": false,
4127
4130
  "multiple": false
4128
4131
  },
4132
+ "resourceGroup": {
4133
+ "name": "resourceGroup",
4134
+ "type": "option",
4135
+ "description": "The name of the Azure resource group under which the instance is to be created (Azure-specific).",
4136
+ "required": false,
4137
+ "multiple": false
4138
+ },
4129
4139
  "silent": {
4130
4140
  "name": "silent",
4131
4141
  "type": "boolean",
4132
- "char": "y",
4133
- "description": "(Optional: defaults to false) Prevents confirmations of user-values that are remembered from prior runs. Requires: enterprise,name,storageAccount,shareName,providerSubscriptionId,resourceId,accessKey",
4142
+ "description": "Non-Interactive mode; executes without any user interaction and fails on any missing or invalid arguments.",
4134
4143
  "required": false,
4135
4144
  "allowNo": false,
4136
4145
  "dependsOn": [
4137
4146
  "enterprise",
4138
4147
  "name",
4139
- "storageAccount",
4140
- "shareName",
4141
4148
  "providerSubscriptionId",
4142
- "resourceId",
4143
- "accessKey"
4149
+ "storageAccount",
4150
+ "shareName"
4151
+ ],
4152
+ "exclusive": [
4153
+ "echo",
4154
+ "to-script"
4155
+ ]
4156
+ },
4157
+ "echo": {
4158
+ "name": "echo",
4159
+ "type": "boolean",
4160
+ "description": "Echo interaction mode; renders the equivalent non-interactive cli command for future use before final execution.",
4161
+ "allowNo": false,
4162
+ "exclusive": [
4163
+ "to-script",
4164
+ "silent"
4165
+ ]
4166
+ },
4167
+ "to-script": {
4168
+ "name": "to-script",
4169
+ "type": "boolean",
4170
+ "description": "Toscript interaction mode; renders the equivalent non-interactive cli command WITHOUT any execution.",
4171
+ "allowNo": false,
4172
+ "exclusive": [
4173
+ "echo",
4174
+ "silent"
4175
+ ]
4176
+ },
4177
+ "take-defaults": {
4178
+ "name": "take-defaults",
4179
+ "type": "boolean",
4180
+ "description": "Setting this to true prevents prompting for confirmation on parameters that were passed in or were automatically set to default values (Irrelevant in --silent mode).",
4181
+ "allowNo": false,
4182
+ "exclusive": [
4183
+ "silent"
4144
4184
  ]
4145
4185
  }
4146
4186
  },
@@ -4148,11 +4188,9 @@
4148
4188
  "dependsOn": [
4149
4189
  "enterprise",
4150
4190
  "name",
4151
- "storageAccount",
4152
- "shareName",
4153
4191
  "providerSubscriptionId",
4154
- "resourceId",
4155
- "accessKey"
4192
+ "storageAccount",
4193
+ "shareName"
4156
4194
  ]
4157
4195
  },
4158
4196
  "filestore:forget": {
@@ -4270,6 +4308,9 @@
4270
4308
  "AzureBlobStorage",
4271
4309
  "AzureDisk",
4272
4310
  "AzureFileStorage",
4311
+ "AwsEfs",
4312
+ "AwsEbs",
4313
+ "AwsS3Bucket",
4273
4314
  "HostMachineFolder"
4274
4315
  ]
4275
4316
  },
@@ -5246,18 +5287,14 @@
5246
5287
  "name": "silent",
5247
5288
  "type": "boolean",
5248
5289
  "char": "y",
5249
- "description": "(Optional: defaults to false) Prevents confirmations of user-values that are remembered from prior runs. Requires: asset,enterprise,name,code,enterprise,port,hasIngress,routedWithoutName",
5290
+ "description": "(Optional: defaults to false) Prevents confirmations of user-values that are remembered from prior runs. Requires: asset,enterprise,name,scope",
5250
5291
  "required": false,
5251
5292
  "allowNo": false,
5252
5293
  "dependsOn": [
5253
5294
  "asset",
5254
5295
  "enterprise",
5255
5296
  "name",
5256
- "code",
5257
- "enterprise",
5258
- "port",
5259
- "hasIngress",
5260
- "routedWithoutName"
5297
+ "scope"
5261
5298
  ]
5262
5299
  }
5263
5300
  },
@@ -5271,11 +5308,7 @@
5271
5308
  "asset",
5272
5309
  "enterprise",
5273
5310
  "name",
5274
- "code",
5275
- "enterprise",
5276
- "port",
5277
- "hasIngress",
5278
- "routedWithoutName"
5311
+ "scope"
5279
5312
  ]
5280
5313
  },
5281
5314
  "pkg:add": {
@@ -8351,6 +8384,127 @@
8351
8384
  }
8352
8385
  }
8353
8386
  },
8387
+ "noc:cluster:capture": {
8388
+ "id": "noc:cluster:capture",
8389
+ "description": "Creates a new record in Codiac for a cluster that already physically exists in a cloud subscription. You will need credentials for the cloud service provider subscription you are drawing the cluster from. Use `cod csp login` to capture your credentials. Use `cod cluster forget ---running` to undo this operation.",
8390
+ "strict": true,
8391
+ "pluginName": "@codiac.io/codiac-cli",
8392
+ "pluginAlias": "@codiac.io/codiac-cli",
8393
+ "pluginType": "core",
8394
+ "aliases": [
8395
+ "cluster:capture"
8396
+ ],
8397
+ "hiddenAliases": [],
8398
+ "examples": [
8399
+ {
8400
+ "description": "Capture a cluster interatively.",
8401
+ "command": "cod cluster capture"
8402
+ },
8403
+ {
8404
+ "description": "Capture an Azure cluster silently.",
8405
+ "command": "cod cluster capture -n my-cluster -p azure -s abcd123-xyzpdq-5678-pdq345 -l eastus -g our-dev-stuff"
8406
+ },
8407
+ {
8408
+ "description": "Capture an AWS cluster silently.",
8409
+ "command": "cod cluster capture -n my-cluster -p aws -s 123456789012 -l us-east-1"
8410
+ }
8411
+ ],
8412
+ "flags": {
8413
+ "help": {
8414
+ "name": "help",
8415
+ "type": "boolean",
8416
+ "char": "h",
8417
+ "description": "Show CLI help.",
8418
+ "allowNo": false
8419
+ },
8420
+ "name": {
8421
+ "name": "name",
8422
+ "type": "option",
8423
+ "char": "n",
8424
+ "description": "Name of the cluster to capture",
8425
+ "multiple": false
8426
+ },
8427
+ "provider": {
8428
+ "name": "provider",
8429
+ "type": "option",
8430
+ "char": "p",
8431
+ "description": "Cloud service provider on which to find the cluster",
8432
+ "required": false,
8433
+ "multiple": false,
8434
+ "options": [
8435
+ "azure",
8436
+ "aws"
8437
+ ]
8438
+ },
8439
+ "providerSubscription": {
8440
+ "name": "providerSubscription",
8441
+ "type": "option",
8442
+ "char": "s",
8443
+ "description": "The cloud provider subscription Id under which to find the cluster (eg: SubscriptionId for azure, AccountId for aws).",
8444
+ "required": false,
8445
+ "multiple": false
8446
+ },
8447
+ "location": {
8448
+ "name": "location",
8449
+ "type": "option",
8450
+ "char": "l",
8451
+ "description": "The short name of the regional data center in which the cliuster resides.",
8452
+ "required": false,
8453
+ "multiple": false
8454
+ },
8455
+ "azResourceGroup": {
8456
+ "name": "azResourceGroup",
8457
+ "type": "option",
8458
+ "char": "g",
8459
+ "description": "(required for Azure) The Azure resource group in which to find the cluster.",
8460
+ "required": false,
8461
+ "multiple": false
8462
+ },
8463
+ "silent": {
8464
+ "name": "silent",
8465
+ "type": "boolean",
8466
+ "description": "Non-Interactive mode; executes without any user interaction and fails on any missing or invalid arguments.",
8467
+ "allowNo": false,
8468
+ "dependsOn": [
8469
+ "name",
8470
+ "provider",
8471
+ "providerSubscription",
8472
+ "location"
8473
+ ],
8474
+ "exclusive": [
8475
+ "echo",
8476
+ "to-script"
8477
+ ]
8478
+ },
8479
+ "echo": {
8480
+ "name": "echo",
8481
+ "type": "boolean",
8482
+ "description": "Echo interaction mode; renders the equivalent non-interactive cli command for future use before final execution.",
8483
+ "allowNo": false,
8484
+ "exclusive": [
8485
+ "to-script",
8486
+ "silent"
8487
+ ]
8488
+ },
8489
+ "to-script": {
8490
+ "name": "to-script",
8491
+ "type": "boolean",
8492
+ "description": "Toscript interaction mode; renders the equivalent non-interactive cli command WITHOUT any execution.",
8493
+ "allowNo": false,
8494
+ "exclusive": [
8495
+ "echo",
8496
+ "silent"
8497
+ ]
8498
+ }
8499
+ },
8500
+ "args": {},
8501
+ "dependsOn": [
8502
+ "name",
8503
+ "provider",
8504
+ "providerSubscription",
8505
+ "location"
8506
+ ]
8507
+ },
8354
8508
  "noc:cluster:create": {
8355
8509
  "id": "noc:cluster:create",
8356
8510
  "description": "Provisions the physical cluster",
@@ -8676,6 +8830,14 @@
8676
8830
  "other"
8677
8831
  ]
8678
8832
  },
8833
+ "running": {
8834
+ "name": "running",
8835
+ "type": "boolean",
8836
+ "char": "r",
8837
+ "description": "Include clusters that still have a running instance.",
8838
+ "required": false,
8839
+ "allowNo": false
8840
+ },
8679
8841
  "silent": {
8680
8842
  "name": "silent",
8681
8843
  "type": "boolean",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codiac.io/codiac-cli",
3
3
  "description": "Local command line interface for managing enterprise assets and environments.",
4
- "version": "1.3.57",
4
+ "version": "1.3.60",
5
5
  "author": "Codiac",
6
6
  "bin": {
7
7
  "codiac": "./bin/run",
@@ -29,8 +29,8 @@
29
29
  "dependencies": {
30
30
  "@codiac.io/api-client-base": "^1.1.15",
31
31
  "@codiac.io/cli-tools": "^1.1.10",
32
- "@codiac.io/codiac-common": "^1.3.2",
33
- "@codiac.io/codiac-domain": "^1.6.2",
32
+ "@codiac.io/codiac-common": "^1.3.3",
33
+ "@codiac.io/codiac-domain": "^1.6.6",
34
34
  "@codiac.io/codiac-ops-common": "^1.2.1",
35
35
  "@codiac.io/codiac-relay-contracts": "^1.2.23",
36
36
  "@codiac.io/jwt-lib": "^1.1.6",