Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ReservedPorts = []int{8012, 8022, 9090, 9091, 15000, 15001, 15006, 15020, 15021, 15090, 41000}
ReservedPorts are the ports the platform binds for itself — the Istio sidecar (15000/15001/15006/15020/15021/15090), the envoy admin/metrics pair, and the agent tunnel. A workload bound to one of these is an operational hazard, which is why port.ts rejects them rather than letting the actuator discover the clash. Order matters: it is rendered into the error message as-is.
Functions ¶
func RejectReserved ¶
RejectReserved ports the `.custom()` at port.ts:6-12, and serves the sandbox runtime's own reserved list too (sandbox.ts SandboxPort) — same check, same message, a different owner. The list renders with JS's Array.toString (comma-joined).
Types ¶
type Port ¶
type Port float64
Port ports `Joi.number().integer().max(65535).min(80).custom(reserved)`. The rule lives in validate.go.
func (Port) ValidationRule ¶
ValidationRule ports `Joi.number().integer().max(65535).min(80).custom(...)` (nodelibs/schema/src/port.ts), in Joi's declared order so the first failing constraint is the one reported.