Expand description
ADVERTISED-BUT-INERT KINDS — making a no-op say so.
★ THE GAP THIS CLOSES. Three kinds are in the catalog and therefore in
discovery, and nothing implements their behaviour: APIService (no
aggregation proxy), FlowSchema and PriorityLevelConfiguration (no
priority-and-fairness queueing). A client can discover them, create one,
get a 201, and receive no semantics whatsoever.
That is the one pattern this codebase otherwise refuses everywhere else.
kotae says an answer must name WHICH of four things happened; a
silently-inert kind answers found when the truth is refused.
★ WHY NOT SIMPLY STOP ADVERTISING THEM. Because the contract is the
product. Removing APIService from discovery makes engenho visibly not
a Kubernetes API server — every client that enumerates api groups sees a
hole — and the whole programme is to present the real surface first and
decide about the technology behind it afterwards. The honest move is to
keep the surface and make the ABSENCE queryable.
★ WHY Available=False ON APIService IS THE LOAD-BEARING HALF.
Available is not decoration: it is the field a client reads to decide
whether to ROUTE to an aggregated service. metrics-server registers an
APIService and expects the apiserver to proxy metrics.k8s.io to it.
Left with no status, its registration looks successful and every query
to that group silently goes nowhere — a broken feature that reports
itself healthy. Available=False turns that into kubectl get apiservices showing exactly which group is not served, and why.
★ THE OTHER TWO GET AN ENGENHO-SCOPED CONDITION, NOT AN UPSTREAM ONE.
FlowSchema has an upstream Dangling condition meaning something
specific (it references a PriorityLevelConfiguration that does not
exist). Reusing it to mean “engenho has no APF” would be a lie in
upstream’s own vocabulary — a client acting on Dangling would go fix a
reference that is perfectly correct. A condition type we own cannot be
misread as a claim we are not making.
Structs§
- Served
Capability Controller - Stamps truthful status conditions onto every advertised-but-inert object, so a no-op is queryable instead of silent.
Enums§
- Inert
Kind - A kind engenho advertises but does not implement.
Constants§
- AVAILABLE_
CONDITION - Upstream’s
APIServiceavailability condition. Real, and read by real clients to decide routing — which is why it is set here and why the value isFalse. - SERVED_
CONDITION - The condition type engenho uses to declare that a kind’s behaviour is not implemented on this server.
Functions§
- already_
stamped - Whether an object already carries the truthful conditions.
- stamped
- The object with truthful conditions applied.