@firestartr/cli 1.48.0 → 1.48.1-snapshot-1

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/build/index.js CHANGED
@@ -302464,6 +302464,19 @@ function isTerraformWorkspace(cr) {
302464
302464
  return cr.kind === 'FirestartrTerraformWorkspace';
302465
302465
  }
302466
302466
 
302467
+ ;// CONCATENATED MODULE: ../cdk8s_renderer/src/validations/crSize.ts
302468
+
302469
+ const K8S_OBJECT_SIZE_LIMIT = 1572864; // 1.5 MiB in bytes
302470
+ function validateCrSizes(crs) {
302471
+ for (const [key, cr] of Object.entries(crs)) {
302472
+ const serialized = catalog_common.io.toYaml(cr);
302473
+ const size = Buffer.byteLength(serialized, 'utf8');
302474
+ if (size > K8S_OBJECT_SIZE_LIMIT) {
302475
+ throw new Error(`CR "${key}" exceeds the Kubernetes object size limit by ${size - K8S_OBJECT_SIZE_LIMIT} bytes. Maximum allowed is ${K8S_OBJECT_SIZE_LIMIT} bytes (1.5MiB).`);
302476
+ }
302477
+ }
302478
+ }
302479
+
302467
302480
  ;// CONCATENATED MODULE: ../cdk8s_renderer/src/refsSorter/refsSorter.ts
302468
302481
 
302469
302482
  /**
@@ -307816,6 +307829,7 @@ async function renderClaim(catalogScope, firestartrScope, claim, patches, previo
307816
307829
 
307817
307830
 
307818
307831
 
307832
+
307819
307833
  /*
307820
307834
  * Function called when rendering but not importing
307821
307835
  *
@@ -307831,6 +307845,7 @@ async function renderer_render(catalogScope, firestartrScope, activateReferentia
307831
307845
  const data = await loadClaimsList(claimList);
307832
307846
  const result = await renderClaims(catalogScope, firestartrScope, data);
307833
307847
  validateTfStateKeyUniqueness(result);
307848
+ validateCrSizes(result);
307834
307849
  return result;
307835
307850
  }
307836
307851
 
@@ -0,0 +1 @@
1
+ export declare function validateCrSizes(crs: any): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "1.48.0",
3
+ "version": "1.48.1-snapshot-1",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",