Documentation
¶
Overview ¶
Package fakeworker holds what the two programs of the benchmark fake data plane share: how a fake Worker is named and placed.
Index ¶
Constants ¶
const MaxRunLength = 8
MaxRunLength bounds the run prefix so every generated name stays well inside the 63-character limit on Worker names.
const WorkerPoolLabel = "ate.dev/worker-pool"
WorkerPoolLabel is the label key the WorkerPool controller selects a pool's worker pods by; a fake pool's status.selector names it the same way.
Variables ¶
This section is empty.
Functions ¶
func IP ¶
IP returns the address recorded for the index-th fake Worker of a pool: a documentation-range address that nothing answers on. Addresses repeat past 254 Workers, which ate-api-server allows.
func Index ¶
Index returns the index of the fake Worker named name in a WorkerPool, and false when the name is not one of that pool's fake Workers.
func Name ¶
Name returns the name of the index-th fake Worker of a WorkerPool. The pool enters as a hash because its namespace and name together can exceed the 63-character limit on Worker names.
func Node ¶
Node returns the node the index-th fake Worker of a pool is placed on: round robin over nodes, which the caller keeps sorted.
func ValidateRun ¶
ValidateRun reports whether run is usable as a run prefix.
Types ¶
This section is empty.