@firestartr/cli 1.48.1-snapshot-1 → 1.48.1-snapshot-test
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
|
@@ -302466,13 +302466,14 @@ function isTerraformWorkspace(cr) {
|
|
|
302466
302466
|
|
|
302467
302467
|
;// CONCATENATED MODULE: ../cdk8s_renderer/src/validations/crSize.ts
|
|
302468
302468
|
|
|
302469
|
-
const K8S_OBJECT_SIZE_LIMIT = 1572864; // 1.5 MiB in bytes
|
|
302469
|
+
const K8S_OBJECT_SIZE_LIMIT = 1572864; // 1.5 MiB in bytes, etcd recommended limit: https://etcd.io/docs/latest/dev-guide/limit/
|
|
302470
302470
|
function validateCrSizes(crs) {
|
|
302471
|
-
for (const
|
|
302471
|
+
for (const key of Object.keys(crs)) {
|
|
302472
|
+
const cr = crs[key];
|
|
302472
302473
|
const serialized = catalog_common.io.toYaml(cr);
|
|
302473
302474
|
const size = Buffer.byteLength(serialized, 'utf8');
|
|
302474
302475
|
if (size > K8S_OBJECT_SIZE_LIMIT) {
|
|
302475
|
-
throw new Error(`CR "${
|
|
302476
|
+
throw new Error(`CR "${cr.kind}-${cr.metadata.name}" 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
|
}
|
|
302477
302478
|
}
|
|
302478
302479
|
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { RenderedCrMap } from '../renderer/types';
|
|
2
|
+
export declare function validateCrSizes(crs: RenderedCrMap): void;
|