@codiac.io/codiac-cli 1.2.232 → 1.2.234

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.
@@ -449,6 +449,8 @@ export interface ClusterDef {
449
449
  nodeCount?: number | undefined;
450
450
  ingressDef?: IngressDef | undefined;
451
451
  privateOwner?: string | undefined;
452
+ nodesMin?: number | undefined;
453
+ nodesMax?: number | undefined;
452
454
  /** This is the system id for the cluster definition, NOT the identifier of the concrete cluster instance given by the cloud provider. */
453
455
  id?: string | undefined;
454
456
  /** The code recognized by the cloud provider for identifying which virtual machine configuration to use as cluster nodes.
@@ -468,7 +470,7 @@ export interface ClusterDef {
468
470
  instance?: Cluster | undefined;
469
471
  /** (Optional) The default resource allocation spec to apply to containers in this cluster. */
470
472
  defaultFootprint?: ContainerFootprint | undefined;
471
- /** Node pools in addition to thw default node pool created with the cluster. */
473
+ /** Node pools in addition to the default node pool created with the cluster. */
472
474
  nodePools?: NodePoolDef[] | undefined;
473
475
  /** User account credentials with which to create new Windows nodes in the cluster.
474
476
  *
@@ -537,12 +539,19 @@ export interface ContainerFootprint {
537
539
  cpuLimit?: string | undefined;
538
540
  memRequest?: string | undefined;
539
541
  memLimit?: string | undefined;
542
+ replicasMin?: number | undefined;
543
+ replicasMax?: number | undefined;
544
+ scaleBy?: string | undefined;
540
545
  id?: string | undefined;
541
546
  createdBy: string;
542
547
  modifiedBy: string;
543
548
  created: Date;
544
549
  modified: Date;
545
550
  }
551
+ export interface CreateClusterAck {
552
+ /** Identifier linking this unique transaction execution to its related parent callers and child transactions. */
553
+ correlationId: string;
554
+ }
546
555
  export interface CreateClusterRequest {
547
556
  spec?: ClusterDef | undefined;
548
557
  acrs?: object[] | undefined;
@@ -550,6 +559,27 @@ export interface CreateClusterRequest {
550
559
  codiacAPiUrl?: string | undefined;
551
560
  skipInit?: Boolean | undefined;
552
561
  }
562
+ export interface CreateClusterRequestAsync {
563
+ spec?: ClusterDef | undefined;
564
+ skipInit?: boolean | undefined;
565
+ /** (Optional: if not provided the relay will generate one and return it in the ack/response) */
566
+ correlationId?: string | undefined;
567
+ /** (Optional) The websocket opened by a client for real time status messages. */
568
+ socketId?: string | undefined;
569
+ /** Url to which to publish the ultimate result.
570
+ * Upon completion, this url will be requested with an http POST method,
571
+ * and the result object as the body of the request.
572
+ *
573
+ * (Optional: it is not necessary to provide a callback url,
574
+ * and if subscribing to the async status stream, a callbackUrl is probably redundant,
575
+ * since the ultimate result gets published to the status stream.
576
+ * That is, you may only want to provide a callbackUrl if you are running async
577
+ * and do not want to monitor the status stream.) */
578
+ callbackUrl?: string | undefined;
579
+ acrs?: object[] | undefined;
580
+ userContext?: UserContext | undefined;
581
+ codiacAPiUrl?: string | undefined;
582
+ }
553
583
  export interface CreateClusterResponse {
554
584
  clusterDef?: ClusterDef | undefined;
555
585
  success: boolean;
@@ -950,7 +980,7 @@ export interface GetAllSecretProvidersRequest {
950
980
  export interface GetAvailableK8sVersionsRequest {
951
981
  provider: CloudProviderEnum;
952
982
  location: string;
953
- subscriptionId?: string;
983
+ subscriptionId?: string | undefined;
954
984
  }
955
985
  export interface GetAwsNodeTypesRequest {
956
986
  }
@@ -1013,7 +1043,9 @@ export interface GetSecretStoresRequest {
1013
1043
  spec: Partial<SecretStore>;
1014
1044
  }
1015
1045
  export interface HelmAssetTemplate {
1016
- /** Maps a port number to the associated setting (full dot path name) in the chart config. */
1046
+ /** Maps a port number to the associated setting (full dot path name) in the chart config.
1047
+ *
1048
+ * TODO: Revisit this data structure. */
1017
1049
  portMappings: object;
1018
1050
  chart: HelmChartSpec;
1019
1051
  assetType: AssetTypesEnum;
@@ -1193,6 +1225,56 @@ export interface IngressDef {
1193
1225
  created: Date;
1194
1226
  modified: Date;
1195
1227
  }
1228
+ /** A script or program to run (from within a given container) before an asset's main container is started.
1229
+ *
1230
+ * Failure of this container DOES prevent the asset's main container from starting.
1231
+ *
1232
+ * In Kubernetes, this gets implemented as an [Init Container](https://kubernetes.io/docs/concepts/workloads/pods/init-containers/) */
1233
+ export interface InitContainer {
1234
+ name: string;
1235
+ id?: string | undefined;
1236
+ createdBy: string;
1237
+ modifiedBy: string;
1238
+ created: Date;
1239
+ modified: Date;
1240
+ /** Fully-qualified name of the image whose entrypoint command is to be run,
1241
+ *
1242
+ * Format: `[registryUrl]/[imageName]` (DockerHub is used by default).
1243
+ *
1244
+ * eg:
1245
+ * * `busybox`
1246
+ * * `myazAcr.azurecr.io/my-favorite-image` */
1247
+ image: string;
1248
+ /** Command run on container startup (Optional; defaults to the image's ENTRYPOINT, and if null, defaults to `/bin/sh -c`)
1249
+ *
1250
+ * Description from k8s docs:
1251
+ * Not executed within a shell. The container image\'s ENTRYPOINT is used if this is not provided.
1252
+ * Variable references $(VAR_NAME) are expanded using the container\'s environment.
1253
+ * If a variable cannot be resolved, the reference in the input string will be unchanged.
1254
+ * Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax:
1255
+ * i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\".
1256
+ * Escaped references will never be expanded, regardless of whether the variable exists or not.
1257
+ * Cannot be updated. */
1258
+ entryPointCommand?: string[] | undefined;
1259
+ /** (Optional; defaults to whatever the image has as its "CMD")
1260
+ * Gets passed to the entryPointCommand. Often, the entrypointCommand opens a shell, allowing this to be the command to run inside the shell,
1261
+ *
1262
+ * eg: `entryPointCommand="/bin/sh -c"` and `entryPointArgs="ls -a"` which yields: `/bin/sh -c ls -a` */
1263
+ entryPointArgs?: string[] | undefined;
1264
+ /** Container\'s working directory. If not specified, the container runtime\'s default will be used,
1265
+ * which might be configured in the container image. Cannot be updated. */
1266
+ workingDir?: string | undefined;
1267
+ /** (optional; defaults to false) UNLESS this is set to true, the init container will also get the env variables that are declared in Codiac for the asset. */
1268
+ preventAssetEnv?: boolean | undefined;
1269
+ /** (optional; defaults to false) UNLESS this is set to true, the init container will also get the config files that are declared in Codiac for the asset. */
1270
+ preventAssetConfig?: boolean | undefined;
1271
+ /** (optional; defaults to false) UNLESS this is set to true, the init container will also get the volume mounts that are declared in Codiac for the asset. */
1272
+ preventAssetVolumes?: boolean | undefined;
1273
+ /** (optional) Min/Max Mem and CPU allocations */
1274
+ footprint?: Pick<ContainerFootprint, "memLimit" | "memRequest" | "cpuLimit" | "cpuRequest"> | undefined;
1275
+ /** (optional: defaults to all) The versions of the parent asset for which this init container is to be used. */
1276
+ versionRange?: string | undefined;
1277
+ }
1196
1278
  export interface IntOrString {
1197
1279
  }
1198
1280
  export interface IPartialAsset {
@@ -1201,7 +1283,7 @@ export interface IPartialAsset {
1201
1283
  name?: string | undefined;
1202
1284
  /** An unversioned reference to an image repository. */
1203
1285
  image?: Image | undefined;
1204
- port?: number | undefined;
1286
+ port?: PortMapping | PortMapping | number[] | number | undefined;
1205
1287
  hasIngress?: boolean | undefined;
1206
1288
  routedWithoutName?: boolean | undefined;
1207
1289
  id?: string | undefined;
@@ -1238,6 +1320,59 @@ export interface IPartialAsset {
1238
1320
  probes?: Probe[] | undefined;
1239
1321
  /** Overrides for the the container startup command. */
1240
1322
  entryPoints?: EntryPoint[] | undefined;
1323
+ /** Rules for the selecting which nodes on which this asset will be run (aka: NodeSelectors, affinities, and taints). */
1324
+ nodeRequirements?: NodePlacement[] | undefined;
1325
+ /** Scripts to run (via init containers) before the asset's own container starts. */
1326
+ beforeStartup?: InitContainer[] | undefined;
1327
+ /** Command line script (NOT run within a shell) to run within the asset container
1328
+ * AFTER the asset has succcessfully completed its startup.
1329
+ *
1330
+ * From K8s Docs:
1331
+ * Management of the container blocks until this action is complete,
1332
+ * unless the container process fails, in which case the handler is aborted.
1333
+ *
1334
+ * called immediately after a container is created.
1335
+ * If the handler fails, the container is terminated and restarted according to its restart policy.
1336
+ * Other management of the container blocks until the hook completes.
1337
+ * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
1338
+ *
1339
+ * The working directory for the command is root ('/') in the container's filesystem.
1340
+ * The command is simply exec'd, it is NOT run inside a shell,
1341
+ * so traditional shell instructions ('|', etc) won't work.
1342
+ * To use a shell, you need to explicitly call out to that shell.
1343
+ * Exit status of 0 is treated as live/healthy and non-zero is unhealthy. */
1344
+ postStartup?: string[] | undefined;
1345
+ /** Enable this setting to allow http (ie: non-SSL/TLS) requests in through the ingress controller without getting redirected to https.
1346
+ *
1347
+ * That is, Setting this to true will prevent the ingress controller from invoking an automatic redirect to https on any inbound http requests. */
1348
+ allowHttp?: boolean | undefined;
1349
+ /** Freeform url paths to use as an override for the asset code property
1350
+ * when assembling ingress routing
1351
+ * for domain mapping strategies
1352
+ * that place the "service" segment
1353
+ * into the url path.
1354
+ *
1355
+ * *NOTE: Each entry must be unique within the enterprise,
1356
+ * cannot be null or empty,
1357
+ * cannot start or end with a slash character,
1358
+ * and must uniquely identify this asset within the enterprise.*
1359
+ *
1360
+ * eg:
1361
+ *
1362
+ * For a domain mapping strategy: `cab-dot-domain-slash-service`
1363
+ *
1364
+ * and an asset with code: `my-api`
1365
+ *
1366
+ * When `mydomain.com` gets applied to cabinet `dev`,
1367
+ * default ingress routing will yield: `dev.mydomain.com/my-api`
1368
+ *
1369
+ * So. Adding a path `v1/the-api` to this property
1370
+ * will INSTEAD yield an ingress rule supporting this url:
1371
+ *
1372
+ * `dev.domain.com/v1/the-api`
1373
+ *
1374
+ * NOTE: *Adding paths to this list prevents the default ingress path (as `Asset.code`) from being mapped in the ingress. If you still want that behavior in the ingress rules, you will have to add it to this list.* */
1375
+ ingressPaths?: string[] | undefined;
1241
1376
  createdBy?: string | undefined;
1242
1377
  modifiedBy?: string | undefined;
1243
1378
  created?: Date | undefined;
@@ -1275,7 +1410,7 @@ export interface IValidationStatus {
1275
1410
  }
1276
1411
  export interface JobAssetTemplate {
1277
1412
  image: ImageSpec;
1278
- defaultPort: number;
1413
+ defaultPort: PortMapping | PortMapping | number[] | number;
1279
1414
  defaultImageVersion?: string | undefined;
1280
1415
  assetType: AssetTypesEnum;
1281
1416
  defaultName: string;
@@ -1456,6 +1591,21 @@ export interface NativeTypeDef {
1456
1591
  nullable?: boolean | undefined;
1457
1592
  metadata?: any | undefined;
1458
1593
  }
1594
+ export interface NodePlacement {
1595
+ createdBy: string;
1596
+ modifiedBy: string;
1597
+ created: Date;
1598
+ modified: Date;
1599
+ /** Matches for node labels (aka: nodeSelector). Results in this asset being scheduled only onto nodes whose labels match all of these. */
1600
+ nodeSelector?: object | undefined;
1601
+ /** Controls how Pods are spread across your cluster among failure-domains such as regions, zones, nodes,
1602
+ * and other user-defined topology domains.
1603
+ *
1604
+ * This can help to achieve high availability as well as efficient resource utilization. */
1605
+ spread?: PodTopologySpreadConstraint[] | undefined;
1606
+ /** Semantic version range of the asset in which this node placement is applicable. */
1607
+ versionRange?: string | undefined;
1608
+ }
1459
1609
  /** An arbitrary grouping of OS-specific cluster nodes.
1460
1610
  * All nodes in a pool are of the same vm type. */
1461
1611
  export interface NodePoolDef {
@@ -1463,6 +1613,8 @@ export interface NodePoolDef {
1463
1613
  name: string;
1464
1614
  nodeSpec: string;
1465
1615
  startingNodeCount: number;
1616
+ nodesMin?: number | undefined;
1617
+ nodesMax?: number | undefined;
1466
1618
  isWindows?: boolean | undefined;
1467
1619
  id?: string | undefined;
1468
1620
  createdBy: string;
@@ -1497,6 +1649,23 @@ export interface Permission {
1497
1649
  role: AuthRole;
1498
1650
  priveleges: Privelege[];
1499
1651
  }
1652
+ /** Instructs the kube-scheduler how to place each incoming Pod in relation to the existing Pods across your cluster.
1653
+ *
1654
+ * These can be assigned at the pod level or at the cluster level ([via a KubeSchedulerConfiguration entity](https://v1-24.docs.kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/#cluster-level-default-constraints)). */
1655
+ export interface PodTopologySpreadConstraint {
1656
+ maxSkew: number;
1657
+ topologyKey?: string | undefined;
1658
+ whenUnsatisfiable?: string | undefined;
1659
+ labelSelector?: object | undefined;
1660
+ }
1661
+ /** Declares the port to use when making requests to an asset, and reroutes them to a different port inside the container
1662
+ * (so that the software in the container does not have to be reconfigured when a different port number is assigned to the asset). */
1663
+ export interface PortMapping {
1664
+ /** The port through which requests can be sent to the asset. */
1665
+ external: number;
1666
+ /** The port on which the software inside the container is listening. */
1667
+ internal?: number | undefined;
1668
+ }
1500
1669
  /** A type of operation that a given Role is allowed to perform on a securable object. */
1501
1670
  export declare enum Privelege {
1502
1671
  "value0" = 0,
@@ -1516,8 +1685,39 @@ export interface Probe {
1516
1685
  action: ICommandLineProbeAction | IHttpProbeAction | IGrpcProbeAction | ISocketProbeAction | string;
1517
1686
  /** Semantic version range in which this probe is applicable. */
1518
1687
  versionRange?: string | undefined;
1688
+ /** From [K8s docs](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes):
1689
+ * Number of seconds after the container has started before startup,
1690
+ * liveness or readiness probes are initiated.
1691
+ * If a startup probe is defined, liveness and readiness probe delays
1692
+ * do not begin until the startup probe has succeeded.
1693
+ * Defaults to 0 seconds. Minimum value is 0. */
1519
1694
  initialDelaySeconds?: number | undefined;
1695
+ /** From [K8s docs](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes):
1696
+ * How often (in seconds) to perform the probe.
1697
+ * Default to 10 seconds. The minimum value is 1. */
1520
1698
  periodSeconds?: number | undefined;
1699
+ /** How long to wait (in seconds) for a probe to respond before declaring it a failed execution.
1700
+ *
1701
+ * From [K8s docs](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes):
1702
+ * Number of seconds after which the probe times out.
1703
+ * Defaults to 1 second. Minimum value is 1. */
1704
+ timeoutSeconds?: number | undefined;
1705
+ /** Minimum consecutive successes for the probe to be considered successful
1706
+ * after having failed. Defaults to 1.
1707
+ * Must be 1 for liveness and startup Probes. Minimum value is 1. */
1708
+ successThreshold?: number | undefined;
1709
+ /** The number of probe executions to allow before determining the pod unhealthy.
1710
+ *
1711
+ * From [K8s docs](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes):
1712
+ * After a probe fails failureThreshold times in a row, Kubernetes considers that the overall check has failed:
1713
+ * the container is not ready/healthy/live.
1714
+ * For the case of a startup or liveness probe, if at least failureThreshold probes have failed,
1715
+ * Kubernetes treats the container as unhealthy and triggers a restart for that specific container.
1716
+ * The kubelet honors the setting of terminationGracePeriodSeconds for that container.
1717
+ * For a failed readiness probe, the kubelet continues running the container that failed checks,
1718
+ * and also continues to run more probes; because the check failed,
1719
+ * the kubelet sets the Ready condition on the Pod to false. */
1720
+ failureThreshold?: number | undefined;
1521
1721
  disabled?: boolean | undefined;
1522
1722
  id?: string | undefined;
1523
1723
  createdBy: string;
@@ -1698,7 +1898,7 @@ export declare enum SecurityAccountTypeEnum {
1698
1898
  /** An asset consisting of a k8s service
1699
1899
  * backed by a pod replica set (generated via a k8s Deployment entity). */
1700
1900
  export interface ServiceAssetTemplate {
1701
- defaultPort: number;
1901
+ defaultPort: PortMapping | PortMapping | number[] | number;
1702
1902
  image: ImageSpec;
1703
1903
  defaultImageVersion?: string | undefined;
1704
1904
  assetType: AssetTypesEnum;
@@ -189,7 +189,9 @@ ClusterTillerInstallResponse
189
189
  CommChannelRef
190
190
  ConfigSchema
191
191
  ContainerFootprint
192
+ CreateClusterAck
192
193
  CreateClusterRequest
194
+ CreateClusterRequestAsync
193
195
  CreateClusterResponse
194
196
  CspLoginAuthCodeCatcherRequest
195
197
  CspLoginAuthCodeCatcherResponse
@@ -269,6 +271,7 @@ ImageRepository
269
271
  ImageSpec
270
272
  ImportConfigRequest
271
273
  IngressDef
274
+ InitContainer
272
275
  IntOrString
273
276
  IPartialAsset
274
277
  ISocketProbeAction
@@ -286,12 +289,15 @@ LogintoCloudProviderRequest
286
289
  LogOptions
287
290
  NativeDataTypeEnum
288
291
  NativeTypeDef
292
+ NodePlacement
289
293
  NodePoolDef
290
294
  NumericRange
291
295
  OrderEnum
292
296
  patchOperation
293
297
  patchOperationType
294
298
  Permission
299
+ PodTopologySpreadConstraint
300
+ PortMapping
295
301
  Privelege
296
302
  Probe
297
303
  ProbeActionTypesEnum
@@ -430,6 +436,7 @@ WindowsAdminProfile
430
436
  ZombieRefreshRequest
431
437
  */
432
438
  // GENERICS
439
+ //
433
440
  // [T]
434
- // Total contract count: 292
441
+ // Total contract count: 299
435
442
  //# sourceMappingURL=contracts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../../src/apis/codiac-relay/gen/contracts.ts"],"names":[],"mappings":";;;AAqCA,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,oDAA+B,CAAA;IAC/B,gEAA2C,CAAA;IAC3C,kDAA6B,CAAA;IAC7B,oCAAe,CAAA;IACf,8CAAyB,CAAA;AAC3B,CAAC,EANW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAM5B;AAsFD,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,6BAAW,CAAA;IACX,qCAAmB,CAAA;AACrB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AA8VD,qIAAqI;AACrI,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,gCAAW,CAAA;IACX,oCAAe,CAAA;IACf,4CAAuB,CAAA;IACvB,oCAAe,CAAA;AACjB,CAAC,EALW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAK5B;AAgnBD,yFAAyF;AACzF,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,0DAAqC,CAAA;IACrC,4CAAuB,CAAA;IACvB,0DAAqC,CAAA;IACrC,4DAAuC,CAAA;AACzC,CAAC,EALW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAK5B;AA2KD,IAAY,oBASX;AATD,WAAY,oBAAoB;IAC9B,6GAAqF,CAAA;IACrF,2IAAmH,CAAA;IACnH,qFAA6D,CAAA;IAC7D,qEAA6C,CAAA;IAC7C,qGAA6E,CAAA;IAC7E,iEAAyC,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0SE;AAEF,WAAW;AACP,EAAE;AACF,QAAQ;AACZ,4BAA4B"}
@@ -0,0 +1,18 @@
1
+ import { AtLeast } from '@codiac.io/codiac-common/contracts';
2
+ import { RootMap } from "./apis/codiac-api/contracts";
3
+ import { CommandBaseEnterprise } from "./command-base-enterprise";
4
+ import { InteractionModes } from "./uilogic/config-ui-utils";
5
+ export interface IEnterpriseEntity {
6
+ /** The code for the enterprise in which the entity is situated. */
7
+ enterprise: string;
8
+ }
9
+ export declare abstract class CommandBaseExec<TCandidate extends IEnterpriseEntity> extends CommandBaseEnterprise {
10
+ /** CLI Command-line string to rerun this execution as a non-TTY script. */
11
+ protected cmd: string[];
12
+ run(): Promise<void>;
13
+ abstract captureArgs(enterpriseCode: string): Promise<[AtLeast<TCandidate, "enterprise">, (InteractionModes | undefined), boolean]>;
14
+ abstract buildCandidate_silently(partial: AtLeast<TCandidate, "enterprise">, rootMap: RootMap): Promise<TCandidate | undefined>;
15
+ abstract buildCandidate_interactively(partial: AtLeast<TCandidate, "enterprise">, rootMap: RootMap, takeDefaults: boolean): Promise<TCandidate | undefined>;
16
+ abstract buildCommandString(candidate: TCandidate, cmd: string[]): string[];
17
+ abstract executeTask(candidate: TCandidate): Promise<void>;
18
+ }
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CommandBaseExec = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const command_base_enterprise_1 = require("./command-base-enterprise");
6
+ const config_ui_utils_1 = require("./uilogic/config-ui-utils");
7
+ class CommandBaseExec extends command_base_enterprise_1.CommandBaseEnterprise {
8
+ constructor() {
9
+ var _a, _b;
10
+ super(...arguments);
11
+ /** CLI Command-line string to rerun this execution as a non-TTY script. */
12
+ this.cmd = [this.config.bin, ...((_b = (_a = this.id) === null || _a === void 0 ? void 0 : _a.split(":")) !== null && _b !== void 0 ? _b : [])];
13
+ }
14
+ run() {
15
+ var _a;
16
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
17
+ try {
18
+ this.bootstrap();
19
+ yield this.readStdin();
20
+ (_a = this._relayContainer) === null || _a === void 0 ? void 0 : _a.ready$.subscribe((ready) => tslib_1.__awaiter(this, void 0, void 0, function* () {
21
+ try {
22
+ // 0. SET DEFAULTS
23
+ this._userCntx = yield this.establishTenantContext(this._userCntx);
24
+ let enterprise = (yield this.establishEnterpriseContext()).enterprise;
25
+ // 1. CAPTURE ARGS
26
+ let [partial, interactionMode, takeDefaults] = yield this.captureArgs(enterprise.code);
27
+ // 2. ACQUIRE INPUT
28
+ let rootMap = yield this.getRootMap(enterprise.code);
29
+ let candidate;
30
+ if (interactionMode == config_ui_utils_1.InteractionModes.silent) {
31
+ candidate = yield this.buildCandidate_silently(partial, rootMap);
32
+ }
33
+ else {
34
+ candidate = yield this.buildCandidate_interactively(partial, rootMap, takeDefaults);
35
+ }
36
+ // In case we're hanging waiting for piped-in data that doesnt exist...
37
+ if (!process.stdin.destroyed)
38
+ process.stdin.destroy();
39
+ if (candidate == undefined) {
40
+ this.logger.notice(`Operation cancelled. No work was done.`);
41
+ this._ui.userMessage(`Operation cancelled. No work was done.`);
42
+ this.exit(0);
43
+ }
44
+ else {
45
+ // 3. RENDER COMMAND STRING
46
+ if (interactionMode != undefined && [config_ui_utils_1.InteractionModes.echo, config_ui_utils_1.InteractionModes.toscript].includes(interactionMode)) {
47
+ this.cmd = this.buildCommandString(candidate, this.cmd);
48
+ this._ui.userMessage(this.cmd.join(" "));
49
+ }
50
+ if (interactionMode != config_ui_utils_1.InteractionModes.toscript) {
51
+ // 4. EXECUTE THE MAIN TASK
52
+ yield this.executeTask(candidate);
53
+ }
54
+ }
55
+ return;
56
+ }
57
+ catch (err) {
58
+ this.handleError(err);
59
+ // dont rethrow - err handling in the observable isnt yet user-friendly.
60
+ }
61
+ }));
62
+ }
63
+ catch (err) {
64
+ this.handleError(err);
65
+ throw err;
66
+ }
67
+ });
68
+ }
69
+ }
70
+ exports.CommandBaseExec = CommandBaseExec;
71
+ //# sourceMappingURL=command-base-exec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-base-exec.js","sourceRoot":"","sources":["../src/command-base-exec.ts"],"names":[],"mappings":";;;;AAGA,uEAAkE;AAClE,+DAA6D;AAQ7D,MAAsB,eAAsD,SAAQ,+CAAqB;IAAzG;;;QAEE,2EAA2E;QACjE,QAAG,GAAa,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,MAAA,MAAA,IAAI,CAAC,EAAE,0CAAE,KAAK,CAAC,GAAG,CAAC,mCAAI,EAAE,CAAC,CAAC,CAAC;IA2E9E,CAAC;IAxEO,GAAG;;;YACP,IAAI;gBACF,IAAI,CAAC,SAAS,EAAE,CAAC;gBACjB,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;gBACvB,MAAA,IAAI,CAAC,eAAe,0CAAE,MAAM,CACzB,SAAS,CAAC,CAAO,KAAc,EAAE,EAAE;oBAElC,IAAI;wBAEF,kBAAkB;wBAClB,IAAI,CAAC,SAAS,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;wBACnE,IAAI,UAAU,GAAG,CAAC,MAAM,IAAI,CAAC,0BAA0B,EAAE,CAAC,CAAC,UAAU,CAAC;wBAEtE,kBAAkB;wBAClB,IAAI,CAAC,OAAO,EAAE,eAAe,EAAE,YAAY,CAAC,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;wBAEvF,mBAAmB;wBACnB,IAAI,OAAO,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wBACZ,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;wBACtB,wEAAwE;qBACzE;gBAEH,CAAC,CAAA,CAAC,CAAC;aAEN;YAAC,OAAO,GAAG,EAAE;gBACZ,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;gBACtB,MAAM,GAAG,CAAC;aACX;;KAEF;CAWF;AA9ED,0CA8EC"}
@@ -73,6 +73,7 @@ class CabinetList extends command_base_enterprise_1.CommandBaseEnterprise {
73
73
  return;
74
74
  }
75
75
  catch (err) {
76
+ this.handleError(err);
76
77
  throw err;
77
78
  }
78
79
  });
@@ -1 +1 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/cabinet/list.ts"],"names":[],"mappings":";;;AAAA,sCAA4C;AAC5C,6BAA6B;AAE7B,2EAAsE;AACtE,4BAA6B;AAC7B,uDAAuD;AACvD,iEAA+E;AAO/E,MAAqB,WAAY,SAAQ,+CAAqB;IAWtD,GAAG;;;YACP,IAAI,CAAC,SAAS,EAAE,CAAC;YACjB,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAA;YAErD,IAAI;gBACF,IAAI,CAAC,SAAS,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBACnE,IAAI,iBAAiB,GAAG,CAAC,MAAM,IAAI,CAAC,0BAA0B,EAAE,CAAC,CAAC,UAAU,CAAC;gBAG7E,IAAI,YAAY,GAAG,MAAM,kCAAkB,CAAC,KAAK,CAAC,MAAM,CAAC,mCAAI,kCAAiB,CAAC,IAAI,CAAC;gBAEpF,YAAY;gBACZ,IAAI,CAAC,kCAAiB,CAAC,IAAI,EAAE,kCAAiB,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,KAAK;oBAAE,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAA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E,kCAAiB,CAAC,IAAI,EAAE,kCAAiB,CAAC,IAAI,CAAC,EAAE,CAAC;IACnO,IAAI,EAAE,YAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,8CAA8C,EAAE,CAAC;CAC7F,CAAA;AAEM,gBAAI,GAAG,EAAE,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { AtLeast } from '@codiac.io/codiac-common/contracts';
2
+ import { RootMap } from '../../../apis/codiac-api/contracts';
3
+ import { CommandBaseExec } from '../../../command-base-exec';
4
+ import { InteractionModes } from '../../../uilogic/config-ui-utils';
5
+ interface NodeGroupAutoscaler {
6
+ enterprise: string;
7
+ clusterName: string;
8
+ nodeGroup: string;
9
+ nodeType: string;
10
+ min?: number;
11
+ max?: number;
12
+ desired?: number;
13
+ }
14
+ export default class ClusterScalingUpdate extends CommandBaseExec<NodeGroupAutoscaler> {
15
+ static description: string;
16
+ static flags: {
17
+ help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
18
+ enterprise: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
19
+ cluster: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
20
+ "node-group": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
21
+ min: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
22
+ max: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
23
+ desired: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
24
+ silent: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
25
+ echo: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
26
+ "to-script": import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
27
+ "take-defaults": import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
28
+ };
29
+ static args: {
30
+ file: import("@oclif/core/lib/interfaces/parser").Arg<string | undefined, Record<string, unknown>>;
31
+ };
32
+ private __relayWebSocket;
33
+ private get relayWebSocket();
34
+ captureArgs(enterpriseCode: string): Promise<[AtLeast<NodeGroupAutoscaler, "enterprise">, InteractionModes | undefined, boolean]>;
35
+ buildCandidate_silently(partial: AtLeast<NodeGroupAutoscaler, "enterprise">, rootMap: RootMap): Promise<NodeGroupAutoscaler | undefined>;
36
+ buildCandidate_interactively(partial: AtLeast<NodeGroupAutoscaler, "enterprise">, rootMap: RootMap, takeDefaults: boolean): Promise<NodeGroupAutoscaler | undefined>;
37
+ buildCommandString(candidate: NodeGroupAutoscaler, cmd: string[]): string[];
38
+ executeTask(candidate: NodeGroupAutoscaler): Promise<void>;
39
+ private isCompleted;
40
+ private statusHandlerId;
41
+ private completionHandlerId;
42
+ private monitorExecution;
43
+ private unblockAndSleep;
44
+ private setStatusHandlers;
45
+ /** Converts the node pool definition that's part of the now legacy ClusterDef contract into a NodePoolDef object. */
46
+ private extractOriginalNodeGroup;
47
+ }
48
+ export {};