@norskvideo/ctl-product-template-schema 0.1.6 → 0.1.7
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.js +7 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -53,11 +53,13 @@ const ProductTemplateProxySchema = z.object({
|
|
|
53
53
|
}),
|
|
54
54
|
});
|
|
55
55
|
// product-template-schema cannot import @norsk-ctl/shared (dependency direction), so
|
|
56
|
-
// this is a literal copy of the runner's network-mode enum
|
|
57
|
-
//
|
|
58
|
-
//
|
|
59
|
-
//
|
|
60
|
-
//
|
|
56
|
+
// this is a literal copy of the runner's network-mode enum — and the runner
|
|
57
|
+
// spells the same values inline at several contract sites besides. Extend every
|
|
58
|
+
// copy if a new mode ever lands: a value only a product template knows is a
|
|
59
|
+
// default the launch API rejects, and one only the runner knows is a mode no
|
|
60
|
+
// product template may declare. The copies are pinned to each other by
|
|
61
|
+
// packages/norsk-ctl/shared/src/spec/network-mode.guard.test.ts, which sweeps
|
|
62
|
+
// the built OpenAPI document and names each site to update.
|
|
61
63
|
export const PRODUCT_TEMPLATE_ADVANCED_NETWORK_MODES = ["docker", "hybrid"];
|
|
62
64
|
// Per-key opt-in map of settings-backed runner knobs the operator may
|
|
63
65
|
// override per instance. Key presence puts the knob on the launch form;
|