@go-to-k/cdkd 0.260.4 → 0.260.5
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 +44 -16
- 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.5";
|
|
1905
1905
|
}
|
|
1906
1906
|
/**
|
|
1907
1907
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -21867,6 +21867,14 @@ function convertTags(tags) {
|
|
|
21867
21867
|
*/
|
|
21868
21868
|
const DEPLOYMENT_CONFIG_PRESERVE_KEYS = /* @__PURE__ */ new Set(["HookDetails"]);
|
|
21869
21869
|
/**
|
|
21870
|
+
* Read-side (camelCase -> PascalCase) counterpart of
|
|
21871
|
+
* `DEPLOYMENT_CONFIG_PRESERVE_KEYS` for `readCurrentState` (issue #1165 /
|
|
21872
|
+
* #1167). The SDK response carries the free-form document under the camelCase
|
|
21873
|
+
* key `hookDetails`, so the reverse key-flip must copy its value subtree
|
|
21874
|
+
* verbatim (the key itself is still flipped to `HookDetails`).
|
|
21875
|
+
*/
|
|
21876
|
+
const DEPLOYMENT_CONFIG_PRESERVE_KEYS_CAMEL = /* @__PURE__ */ new Set(["hookDetails"]);
|
|
21877
|
+
/**
|
|
21870
21878
|
* AWS ECS Provider
|
|
21871
21879
|
*
|
|
21872
21880
|
* Implements resource provisioning for ECS resources:
|
|
@@ -22649,6 +22657,25 @@ var ECSProvider = class {
|
|
|
22649
22657
|
});
|
|
22650
22658
|
}
|
|
22651
22659
|
/**
|
|
22660
|
+
* Reverse of `convertProxyConfiguration` for `readCurrentState` (issue
|
|
22661
|
+
* #1167): map the SDK camelCase `ProxyConfiguration` back to the CFn
|
|
22662
|
+
* PascalCase shape so the drift baseline (state `properties`, PascalCase)
|
|
22663
|
+
* and the AWS-current read compare apples-to-apples. Unlike the pure
|
|
22664
|
+
* first-letter flips, the SDK field `properties` maps back to the CFn key
|
|
22665
|
+
* `ProxyConfigurationProperties` (a `{Name,Value}[]`), so it needs an
|
|
22666
|
+
* explicit remap rather than `camelToPascalCaseKeys`.
|
|
22667
|
+
*/
|
|
22668
|
+
proxyConfigurationToCfn(config) {
|
|
22669
|
+
const out = {};
|
|
22670
|
+
if (config.type !== void 0) out["Type"] = config.type;
|
|
22671
|
+
if (config.containerName !== void 0) out["ContainerName"] = config.containerName;
|
|
22672
|
+
if (config.properties !== void 0) out["ProxyConfigurationProperties"] = config.properties.map((p) => ({
|
|
22673
|
+
Name: p.name,
|
|
22674
|
+
Value: p.value
|
|
22675
|
+
}));
|
|
22676
|
+
return out;
|
|
22677
|
+
}
|
|
22678
|
+
/**
|
|
22652
22679
|
* Coerce a CFn boolean property to a real boolean at the wire boundary.
|
|
22653
22680
|
* CFn templates can carry booleans as the strings "true" / "false"
|
|
22654
22681
|
* (e.g. via Fn::Sub / parameter plumbing), so the SDK input must
|
|
@@ -22888,8 +22915,8 @@ var ECSProvider = class {
|
|
|
22888
22915
|
if (!c || !c.clusterName) return void 0;
|
|
22889
22916
|
const result = { ClusterName: c.clusterName };
|
|
22890
22917
|
result["CapacityProviders"] = c.capacityProviders ? [...c.capacityProviders] : [];
|
|
22891
|
-
result["DefaultCapacityProviderStrategy"] = c.defaultCapacityProviderStrategy ?? [];
|
|
22892
|
-
if (c.configuration) result["Configuration"] = c.configuration;
|
|
22918
|
+
result["DefaultCapacityProviderStrategy"] = camelToPascalCaseKeys(c.defaultCapacityProviderStrategy ?? []);
|
|
22919
|
+
if (c.configuration) result["Configuration"] = camelToPascalCaseKeys(c.configuration);
|
|
22893
22920
|
result["ClusterSettings"] = (c.settings ?? []).map((s) => ({
|
|
22894
22921
|
Name: s.name,
|
|
22895
22922
|
Value: s.value
|
|
@@ -22927,21 +22954,22 @@ var ECSProvider = class {
|
|
|
22927
22954
|
if (s.enableECSManagedTags !== void 0) result["EnableECSManagedTags"] = s.enableECSManagedTags;
|
|
22928
22955
|
if (s.enableExecuteCommand !== void 0) result["EnableExecuteCommand"] = s.enableExecuteCommand;
|
|
22929
22956
|
if (s.healthCheckGracePeriodSeconds !== void 0) result["HealthCheckGracePeriodSeconds"] = s.healthCheckGracePeriodSeconds;
|
|
22930
|
-
if (s.networkConfiguration) result["NetworkConfiguration"] = s.networkConfiguration;
|
|
22931
|
-
result["LoadBalancers"] = s.loadBalancers ?? [];
|
|
22932
|
-
if (s.capacityProviderStrategy && s.capacityProviderStrategy.length > 0) result["CapacityProviderStrategy"] = s.capacityProviderStrategy;
|
|
22957
|
+
if (s.networkConfiguration) result["NetworkConfiguration"] = camelToPascalCaseKeys(s.networkConfiguration);
|
|
22958
|
+
result["LoadBalancers"] = camelToPascalCaseKeys(s.loadBalancers ?? []);
|
|
22959
|
+
if (s.capacityProviderStrategy && s.capacityProviderStrategy.length > 0) result["CapacityProviderStrategy"] = camelToPascalCaseKeys(s.capacityProviderStrategy);
|
|
22933
22960
|
else if (!s.launchType) result["CapacityProviderStrategy"] = [];
|
|
22934
|
-
if (s.deploymentConfiguration) result["DeploymentConfiguration"] = s.deploymentConfiguration;
|
|
22935
|
-
result["PlacementConstraints"] = s.placementConstraints ?? [];
|
|
22961
|
+
if (s.deploymentConfiguration) result["DeploymentConfiguration"] = camelToPascalCaseKeys(s.deploymentConfiguration, DEPLOYMENT_CONFIG_PRESERVE_KEYS_CAMEL);
|
|
22962
|
+
result["PlacementConstraints"] = camelToPascalCaseKeys(s.placementConstraints ?? []);
|
|
22936
22963
|
if (s.launchType === "EC2" || s.launchType === "EXTERNAL") {
|
|
22937
|
-
const strategy = s.placementStrategy ?? [];
|
|
22964
|
+
const strategy = camelToPascalCaseKeys(s.placementStrategy ?? []);
|
|
22938
22965
|
result["PlacementStrategy"] = strategy;
|
|
22939
22966
|
result["PlacementStrategies"] = strategy;
|
|
22940
22967
|
} else if (s.placementStrategy && s.placementStrategy.length > 0) {
|
|
22941
|
-
|
|
22942
|
-
result["
|
|
22968
|
+
const strategy = camelToPascalCaseKeys(s.placementStrategy);
|
|
22969
|
+
result["PlacementStrategy"] = strategy;
|
|
22970
|
+
result["PlacementStrategies"] = strategy;
|
|
22943
22971
|
}
|
|
22944
|
-
result["ServiceRegistries"] = s.serviceRegistries ?? [];
|
|
22972
|
+
result["ServiceRegistries"] = camelToPascalCaseKeys(s.serviceRegistries ?? []);
|
|
22945
22973
|
result["Tags"] = normalizeAwsTagsToCfn(s.tags);
|
|
22946
22974
|
return result;
|
|
22947
22975
|
}
|
|
@@ -22966,9 +22994,9 @@ var ECSProvider = class {
|
|
|
22966
22994
|
if (td.executionRoleArn !== void 0) result["ExecutionRoleArn"] = td.executionRoleArn;
|
|
22967
22995
|
if (td.taskRoleArn !== void 0) result["TaskRoleArn"] = td.taskRoleArn;
|
|
22968
22996
|
result["Volumes"] = this.volumesToCfn(td.volumes);
|
|
22969
|
-
result["PlacementConstraints"] = td.placementConstraints ?? [];
|
|
22970
|
-
if (td.runtimePlatform) result["RuntimePlatform"] = td.runtimePlatform;
|
|
22971
|
-
if (td.proxyConfiguration) result["ProxyConfiguration"] = td.proxyConfiguration;
|
|
22997
|
+
result["PlacementConstraints"] = camelToPascalCaseKeys(td.placementConstraints ?? []);
|
|
22998
|
+
if (td.runtimePlatform) result["RuntimePlatform"] = camelToPascalCaseKeys(td.runtimePlatform);
|
|
22999
|
+
if (td.proxyConfiguration) result["ProxyConfiguration"] = this.proxyConfigurationToCfn(td.proxyConfiguration);
|
|
22972
23000
|
if (td.pidMode !== void 0) result["PidMode"] = td.pidMode;
|
|
22973
23001
|
if (td.ipcMode !== void 0) result["IpcMode"] = td.ipcMode;
|
|
22974
23002
|
if (td.ephemeralStorage?.sizeInGiB !== void 0) result["EphemeralStorage"] = { SizeInGiB: td.ephemeralStorage.sizeInGiB };
|
|
@@ -61652,7 +61680,7 @@ function createMigrateCommand() {
|
|
|
61652
61680
|
*/
|
|
61653
61681
|
function buildProgram() {
|
|
61654
61682
|
const program = new Command();
|
|
61655
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.260.
|
|
61683
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.260.5");
|
|
61656
61684
|
program.addCommand(createBootstrapCommand());
|
|
61657
61685
|
program.addCommand(createSynthCommand());
|
|
61658
61686
|
program.addCommand(createListCommand());
|