@go-to-k/cdkd 0.260.7 → 0.260.8
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.
- package/dist/cli.js +46 -3
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1901,7 +1901,7 @@ const FLUSH_INTERVAL_MS = 2e3;
|
|
|
1901
1901
|
const FLUSH_EVENT_THRESHOLD = 50;
|
|
1902
1902
|
/** Build-time cdkd version, with a dev fallback for non-built contexts. */
|
|
1903
1903
|
function getCdkdVersion() {
|
|
1904
|
-
return "0.260.
|
|
1904
|
+
return "0.260.8";
|
|
1905
1905
|
}
|
|
1906
1906
|
/**
|
|
1907
1907
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -22376,7 +22376,19 @@ var ECSProvider = class {
|
|
|
22376
22376
|
startTimeout: def["StartTimeout"],
|
|
22377
22377
|
stopTimeout: def["StopTimeout"],
|
|
22378
22378
|
interactive: def["Interactive"],
|
|
22379
|
-
pseudoTerminal: def["PseudoTerminal"]
|
|
22379
|
+
pseudoTerminal: def["PseudoTerminal"],
|
|
22380
|
+
repositoryCredentials: def["RepositoryCredentials"] ? pascalToCamelCaseKeys(def["RepositoryCredentials"]) : void 0,
|
|
22381
|
+
firelensConfiguration: this.convertFirelensConfiguration(def["FirelensConfiguration"]),
|
|
22382
|
+
resourceRequirements: def["ResourceRequirements"] ? pascalToCamelCaseKeys(def["ResourceRequirements"]) : void 0,
|
|
22383
|
+
systemControls: def["SystemControls"] ? pascalToCamelCaseKeys(def["SystemControls"]) : void 0,
|
|
22384
|
+
extraHosts: def["ExtraHosts"] ? pascalToCamelCaseKeys(def["ExtraHosts"]) : void 0,
|
|
22385
|
+
restartPolicy: def["RestartPolicy"] ? pascalToCamelCaseKeys(def["RestartPolicy"]) : void 0,
|
|
22386
|
+
dnsServers: def["DnsServers"],
|
|
22387
|
+
dnsSearchDomains: def["DnsSearchDomains"],
|
|
22388
|
+
dockerSecurityOptions: def["DockerSecurityOptions"],
|
|
22389
|
+
credentialSpecs: def["CredentialSpecs"],
|
|
22390
|
+
hostname: def["Hostname"],
|
|
22391
|
+
versionConsistency: def["VersionConsistency"]
|
|
22380
22392
|
}));
|
|
22381
22393
|
}
|
|
22382
22394
|
/**
|
|
@@ -22494,6 +22506,20 @@ var ECSProvider = class {
|
|
|
22494
22506
|
};
|
|
22495
22507
|
}
|
|
22496
22508
|
/**
|
|
22509
|
+
* Convert CFn `ContainerDefinitions[].FirelensConfiguration` to the ECS SDK
|
|
22510
|
+
* shape (issue #1173). `Type` flips to `type`, but `Options` is a free-form
|
|
22511
|
+
* map of user-supplied FireLens options (e.g. `enable-ecs-log-metadata`,
|
|
22512
|
+
* `config-file-value`) whose keys are NOT CFn property names, so it is copied
|
|
22513
|
+
* verbatim rather than case-flipped.
|
|
22514
|
+
*/
|
|
22515
|
+
convertFirelensConfiguration(config) {
|
|
22516
|
+
if (!config) return void 0;
|
|
22517
|
+
return {
|
|
22518
|
+
type: config["Type"],
|
|
22519
|
+
options: config["Options"]
|
|
22520
|
+
};
|
|
22521
|
+
}
|
|
22522
|
+
/**
|
|
22497
22523
|
* Convert CFn HealthCheck to ECS SDK format
|
|
22498
22524
|
*/
|
|
22499
22525
|
convertHealthCheck(check) {
|
|
@@ -22769,6 +22795,23 @@ var ECSProvider = class {
|
|
|
22769
22795
|
if (c.stopTimeout !== void 0) out["StopTimeout"] = c.stopTimeout;
|
|
22770
22796
|
if (c.interactive !== void 0) out["Interactive"] = c.interactive;
|
|
22771
22797
|
if (c.pseudoTerminal !== void 0) out["PseudoTerminal"] = c.pseudoTerminal;
|
|
22798
|
+
if (c.repositoryCredentials) out["RepositoryCredentials"] = camelToPascalCaseKeys(c.repositoryCredentials);
|
|
22799
|
+
if (c.firelensConfiguration) {
|
|
22800
|
+
const fc = {};
|
|
22801
|
+
if (c.firelensConfiguration.type !== void 0) fc["Type"] = c.firelensConfiguration.type;
|
|
22802
|
+
if (c.firelensConfiguration.options && Object.keys(c.firelensConfiguration.options).length > 0) fc["Options"] = { ...c.firelensConfiguration.options };
|
|
22803
|
+
if (Object.keys(fc).length > 0) out["FirelensConfiguration"] = fc;
|
|
22804
|
+
}
|
|
22805
|
+
if (c.resourceRequirements && c.resourceRequirements.length > 0) out["ResourceRequirements"] = camelToPascalCaseKeys(c.resourceRequirements);
|
|
22806
|
+
if (c.systemControls && c.systemControls.length > 0) out["SystemControls"] = camelToPascalCaseKeys(c.systemControls);
|
|
22807
|
+
if (c.extraHosts && c.extraHosts.length > 0) out["ExtraHosts"] = camelToPascalCaseKeys(c.extraHosts);
|
|
22808
|
+
if (c.restartPolicy) out["RestartPolicy"] = camelToPascalCaseKeys(c.restartPolicy);
|
|
22809
|
+
if (c.dnsServers && c.dnsServers.length > 0) out["DnsServers"] = [...c.dnsServers];
|
|
22810
|
+
if (c.dnsSearchDomains && c.dnsSearchDomains.length > 0) out["DnsSearchDomains"] = [...c.dnsSearchDomains];
|
|
22811
|
+
if (c.dockerSecurityOptions && c.dockerSecurityOptions.length > 0) out["DockerSecurityOptions"] = [...c.dockerSecurityOptions];
|
|
22812
|
+
if (c.credentialSpecs && c.credentialSpecs.length > 0) out["CredentialSpecs"] = [...c.credentialSpecs];
|
|
22813
|
+
if (c.hostname !== void 0) out["Hostname"] = c.hostname;
|
|
22814
|
+
if (c.versionConsistency !== void 0 && c.versionConsistency !== "enabled") out["VersionConsistency"] = c.versionConsistency;
|
|
22772
22815
|
return out;
|
|
22773
22816
|
});
|
|
22774
22817
|
}
|
|
@@ -61824,7 +61867,7 @@ function createMigrateCommand() {
|
|
|
61824
61867
|
*/
|
|
61825
61868
|
function buildProgram() {
|
|
61826
61869
|
const program = new Command();
|
|
61827
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.260.
|
|
61870
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.260.8");
|
|
61828
61871
|
program.addCommand(createBootstrapCommand());
|
|
61829
61872
|
program.addCommand(createSynthCommand());
|
|
61830
61873
|
program.addCommand(createListCommand());
|