pub fn kubernetes_compute_node_selector(
stack: &Stack,
pool: Option<&CapacityGroup>,
built_architectures: &[Architecture],
) -> Result<Option<BTreeMap<String, String>>, String>Expand description
Match Pod placement to the architecture of the workload’s image.
The pool’s profile wins; otherwise a single built architecture recorded by
alien build for this workload (Stack::built_architectures_of) selects nodes; several built architectures
(a multi-architecture image) or none leave the Pod unconstrained, as releases
built before the build recorded it were.
This does not associate Workers with a compute pool or reserve node capacity.