@norskvideo/ctl-product-template-schema 0.1.53 → 0.1.54
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/index.d.ts +9 -0
- package/index.js +6 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -36,6 +36,9 @@ export declare const ProductTemplateAdvancedSchema: z.ZodObject<{
|
|
|
36
36
|
openFileLimit: z.ZodOptional<z.ZodObject<{
|
|
37
37
|
default: z.ZodOptional<z.ZodNumber>;
|
|
38
38
|
}, z.core.$strip>>;
|
|
39
|
+
memoryLimit: z.ZodOptional<z.ZodObject<{
|
|
40
|
+
default: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>>;
|
|
39
42
|
}, z.core.$strip>;
|
|
40
43
|
export declare const ProductTemplateAllocatedPortSchema: z.ZodObject<{
|
|
41
44
|
param: z.ZodString;
|
|
@@ -240,6 +243,9 @@ export declare const ProductTemplateManifestSchema: z.ZodObject<{
|
|
|
240
243
|
openFileLimit: z.ZodOptional<z.ZodObject<{
|
|
241
244
|
default: z.ZodOptional<z.ZodNumber>;
|
|
242
245
|
}, z.core.$strip>>;
|
|
246
|
+
memoryLimit: z.ZodOptional<z.ZodObject<{
|
|
247
|
+
default: z.ZodOptional<z.ZodString>;
|
|
248
|
+
}, z.core.$strip>>;
|
|
243
249
|
}, z.core.$strip>>;
|
|
244
250
|
requirements: z.ZodOptional<z.ZodObject<{
|
|
245
251
|
capacity: z.ZodOptional<z.ZodObject<{
|
|
@@ -501,6 +507,9 @@ export declare const ProductTemplateMaterialsSchema: z.ZodObject<{
|
|
|
501
507
|
openFileLimit: z.ZodOptional<z.ZodObject<{
|
|
502
508
|
default: z.ZodOptional<z.ZodNumber>;
|
|
503
509
|
}, z.core.$strip>>;
|
|
510
|
+
memoryLimit: z.ZodOptional<z.ZodObject<{
|
|
511
|
+
default: z.ZodOptional<z.ZodString>;
|
|
512
|
+
}, z.core.$strip>>;
|
|
504
513
|
}, z.core.$strip>>;
|
|
505
514
|
requirements: z.ZodOptional<z.ZodObject<{
|
|
506
515
|
capacity: z.ZodOptional<z.ZodObject<{
|
package/index.js
CHANGED
|
@@ -146,6 +146,12 @@ export const ProductTemplateAdvancedSchema = z
|
|
|
146
146
|
// and not others) — so this is how a product that needs a HIGHER one says
|
|
147
147
|
// so, not how it gets a ceiling at all. Instance-wide, not per-service.
|
|
148
148
|
openFileLimit: z.object({ default: z.number().int().min(1024).max(1048576).optional() }).optional(),
|
|
149
|
+
// Memory ceiling for each of the instance's containers (docker `mem_limit`
|
|
150
|
+
// syntax, e.g. "24g"; swap is capped at the same value). The runner states
|
|
151
|
+
// one for every instance (16g) — an engine with none once drove a shared
|
|
152
|
+
// host into a global OOM kill — so this is how a product that needs MORE
|
|
153
|
+
// says so. "unlimited" opts the product out of a ceiling altogether.
|
|
154
|
+
memoryLimit: z.object({ default: z.string().optional() }).optional(),
|
|
149
155
|
})
|
|
150
156
|
.meta({ id: "ProductTemplateAdvanced", outputId: "ProductTemplateAdvanced" });
|
|
151
157
|
// A host-port binding whose value rides a product-template parameter, opted in per
|